[MODM-163] @ReferenceMany and Inheritance Created: 01/Mar/12 Updated: 01/Mar/12 |
|
| Status: | Open |
| Project: | Doctrine MongoDB ODM |
| Component/s: | Persister |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | julie sommerville | Assignee: | Jonathan H. Wage |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
php 5.3 macosx 10.7.3 mongodb-odm 1.0 mongodb v2.0.2 |
||
| Description |
|
@ReferenceMany doesn't seem to work when used within a child class unless I specify @InheritanceType("CLASS_PER_COLLECTION") (which is fine b/c that works for our architecture) Here is an example from our code: //Parent Class use Doctrine\Common\Collections\ArrayCollection; /**
//** References
} //Child Class
If I don't add the @InheritanceType annotation the $more_touts data never gets persisted into the DB. |