I agree here that inheritance should not be used to distinguish between 
different roles (or any other kind of state for that matter).

PS: Multiple inheritance (some class extending 2 or more other classes) is not 
supported in PHP.

-- 
Jasper N. Brouwer
(@jaspernbrouwer)


On 10 Jan 2014, at 13:24, Marco Pivetta <[email protected]> wrote:

> This is only possible in PHP with "Owner" and "Producer" being one the 
> subclass of the other. Also, I'm not sure if you really need a distinction 
> between an "Owner" and a "Producer" if they really are just person instances. 
> Instead, you can handle the "Person" instance differently depending on 
> context.
> 
> Marco Pivetta 
> 
> http://twitter.com/Ocramius      
> 
> http://ocramius.github.com/

-- 
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