I'm not sure if this even makes sense to do, but let me try to explain it.

I have two Entities:

Publications
Authors

An author can be of different types:

Editor
Translator
Author (generic / used when undefined from source)

An author is related to a Publication through a Type + an "Authorship" 
value, which is the order the authors are cited.  It denotes their 
significance to the publication and must be maintained.  A single "author" 
can also have multiple types relative to the same publication.

What I would like to be able to do is say:

(pseudo-code)
Publication::Authors (builds ArrayCollection of Authors that are of type 
Author respecting their Authorship value)
Publication::Editors (builds ArrayCollection of Editors that are of type 
Editor respecting their Authorship value)
etc.

I can probably figure out some hacky way of doing this, but I was curious 
if this type of convention had a name and/or was already a feature of the 
Doctrine2 ORM.

Any help would be appreciated, thank you.

-Daniel

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to