symfony - SyliusTaxonomyBundle Override Taxonomy entity and mapping -


i'm trying override taxonomy own. since don't need taxon(s), won't leave root field null , use taxonomy name field. so, in own bundle have taxonomy enitity.

use sylius\component\taxonomy\model\taxonomy basetaxonomy;  class taxonomy extends basetaxonomy {     public function setname($name)     {         $this->name = $name;     } } 

since don't want override bundle (i'm going override syliusproductbundle in future), wanted override mapping orm.xml file in app/resources directory.

this problem is. can't override that, when create tables doctrine:schema:update --force, doctrine sees mapping file , skips syliustaxonomybundle file. i've tried many solutions. lates...

app     resources         syliustaxonomybundle             resources                 config                     doctrine                         model                             taxonomy.orm.xml 

i've read section in symfony2 documentation can't work

the problem in me. put file taxonomy.orm.xml in bundles doctrine directory , good. stupid mistake of mine.


Comments

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -