I've looked at other extended bundles like in lichess and the thing to do seems to be to use xml mapping in the base bundle and annotations for extra fields in the extended bundle.
Is this the suggested way of things? I experimented with using xml annotations in an extended bundle but it doesn't seem to work. //Application/AccountBundle/Document/Account.php namespace Application\AccountBundle\Document; use Bundle\AccountBundle\Document\Account as BaseAccount; class Account extends BaseAccount { protected $firstName; protected $lastName; } //Application/AccountBundle/Resources/config/doctrine/metadata/mongodb <?xml version="1.0" encoding="UTF-8"?> <doctrine-mongo-mapping xmlns="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping.xsd"> <mapped-superclass name="Application\AccountBundle\Document\Account" collection="application_account_account"> <field name="firstName" fieldName="firstName" type="string" /> <field name="lastName" fieldName="lastName" type="string" /> </mapped-superclass> </doctrine-mongo-mapping> >php app/console doctrine:mongodb:generate:documents "ApplicationUserBundle" I get the error: "Bundle ApplicationAccountBundle does not contain any mapped documents." Thanks. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en