Skip to content

Commit

Permalink
We now support @id on @manytoone fields. Removed TODO and associated …
Browse files Browse the repository at this point in the history
…code.
  • Loading branch information
guilhermeblanco committed May 14, 2011
1 parent f4d62b3 commit 2a7364b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions tests/Doctrine/Tests/ORM/Functional/Ticket/DDC192Test.php
Expand Up @@ -44,17 +44,12 @@ class DDC192Phonenumber
*/
protected $phone;

/**
* @Id @Column(name="userId", type="integer")
*/
protected $userId;

/**
* @Id
* @ManyToOne(targetEntity="DDC192User")
* @JoinColumn(name="userId", referencedColumnName="id")
*/
protected $User; // Id on this docblock is ignored!
protected $User;


public function setPhone($value) { $this->phone = $value; }
Expand All @@ -64,7 +59,6 @@ public function getPhone() { return $this->phone; }
public function setUser(User $user)
{
$this->User = $user;
$this->userId = $user->getId(); // TODO: Remove once ManyToOne supports Id annotation
}

public function getUser() { return $this->User; }
Expand Down

0 comments on commit 2a7364b

Please sign in to comment.