[DDC-2080] Entity's association changes after first call Created: 15/Oct/12 Updated: 15/Oct/12 Resolved: 15/Oct/12 |
|
| Status: | Resolved |
| Project: | Doctrine 2 - ORM |
| Component/s: | ORM |
| Affects Version/s: | 2.3 |
| Fix Version/s: | 2.3, 2.3.1 |
| Security Level: | All |
| Type: | Bug | Priority: | Trivial |
| Reporter: | Koby Soto | Assignee: | Benjamin Eberlei |
| Resolution: | Invalid | Votes: | 0 |
| Labels: | None | ||
| Description |
|
i am using the latest version of doctrine: 2.3 when you call a generated association function, the first time everything is fine: $authors = $book->getBookToAuthors(); $authors = $book->getBookToAuthors(); $authors = $book->getBookToAuthors(); //will work public function getBookToAuthors() { return $this->bookToAuthors; }and the mapping is as follows: /**
|
| Comments |
| Comment by Koby Soto [ 15/Oct/12 ] |
|
sorry sorry sorry the target had One-To-One association instead of Many-To-One |