Search code examples
phpdoctrinesymfony-1.4schema.yml

How to define doctrine record filter in symfony's schema.yml?


Doctrine documentation explains that in order to add doctrine record filter, you have to unshiftFilter() to table definition setUp() method:

public function setUp(){
    parent::setUp();
    $this->unshiftFilter(new MyDoctrineRecordFilter());
}

In symfony's case that supposed to go to base class (i.e. /lib/model/doctrine/base/BaseArticle.class.php) but as symfony overwrites base classes every time i rebuild the schema - how (or where) should i define that filter so it would appear there after running the doctrine:build command? I can't find any reference in doc or internet about it's definition in schema.yml.

Thanks.


Solution

  • We are using doctrine 1.2.4. It seems that there is no yaml-schema equivalent