Got it to work.
However, is there a way to make the names of tables created by behaviours, such as "I18n" not be prepended by the specified classPrefix? There are tables generated like
, while the corresponding table is named
. It would be nice if these tables were named without using the classPrefix, and it would be nice if the desired effect could be achieved without having to specifiy the name of the table in the schema such as
fields: [headline, content]
When specifying the schema for the model it isn't necessary to specify the table name either, and the table still gets generated without the classPrefix.
With "working as before" (i.e., w/o PEAR style generation) , I meant that I wondered whether it would only be necessary to adjust code where I create instances of models directly or call methods contained, i.e.,
$content = new Default_Model_Content();
$something = Default_Model_Content::doSomething();
$content = new Content();
$something = Content::doSomething();
or whether it would be necessary to adjust queries using DQL, too, i.e..,
$contentCollection = Doctrine_Query::create()->from('Default_Model_Content c')->where('c.disabled = ?')->execute(array(1));
$contentCollection = Doctrine_Query::create()->from('Content c')->where('c.disabled = ?')->execute(array(1));