2

Is there any way to have a slightly custom reference (@ReferenceOne, @ReferenceMany) in Doctrine MongoDB ODM?

For example, @ReferenceOneWithTs would keep a timestamp field to tell when the reference was created, or @ReferenceManyWithName will have a $name field for each reference, etc.

I think this can be achieved by embedding one or many custom ReferenceWithTs documents, with a timestamp field (for example), but if it's possible via annotations (a-la Custom Field Types) it would be more elegant.

Omer
  • 582
  • 3
  • 14
  • 24
  • was cross-posted on the google groups, and answered there: "currently this is not supported". https://groups.google.com/group/doctrine-user/browse_thread/thread/f197a7e048f337c5/eaaa8cd3f402acc4?show_docid=eaaa8cd3f402acc4 – Omer Dec 09 '11 at 15:48

0 Answers0