Study and you will know. All methods are in the API, for instance here: http://www.doctrine-project.org/api/orm/2.4/class-Doctrine.ORM.Mapping.ClassMetadataInfo.html Once you understand how it works, you can use it. It is not very different from annotations, xml or yaml.
If you think it is needed, you can write an article about inheritance mapping using PHP. Maybe it will be included in the wiki. Sorry, I would like to write such a manual, but have no time for it now. But it is not difficult; just take some more time to study. Good luck. On Monday, 10 March 2014 21:13:13 UTC+1, Parsifal wrote: > > > Sorry, I don't use annotation, nor xml nor yaml, I am using php. I have no > idea how can I use inheritance mapping with php as there is no info in > wiki. please give a sample inheritance mapping with php, please bear with > me there is no info on wiki! > and to what should I change below? please help that it disapears as snow > for the sun! :-) > > > $metadata->setInheritanceType(ClassMetadataInfo::INHERITANCE_TYPE_NONE); > for other xTox mappings I use something like this: > $metadata->mapOneToMany(array( 'fieldName' => 'orders', > 'targetEntity' => 'Entities\\Order', > 'mappedBy' => 'client', > 'joinColumns' => array( 0 => array( 'name' > => 'client_id', > > 'referencedColumnName' => 'client_id', > > 'nullable' => true, > > 'columnDefinition' => NULL, > ), ) > > )); > > > -- 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/d/optout.
