get this component stabilized.
> Thanks Jon,
> I made a little progress.
> I got to export the sql without relations yet.
> I used a child class extending from Doctrine_Record_Generator for the
> Tagging model.
> I instanciate the TaggingGenerator class in the Taggable template
> contructor and add it to the clildren options before instanciating the
> TagGenerator class.
> I works but I had to override the buildChildDefinitions method as it
> seems buggy.
> Replacing:
> $child->setTable($this->_table);
> $child->setUp();
> With
> $child->initialize($this->_table);
> Seems to work. (I don't think there is any setTable method in
> Doctrine_Record_Generator)
> I got the sql for both tables exported, but the option 'generateFiles'
> does not seem to do anything. I tought it would generate model files,
> but I could not find any call to it anywhere.
> Now I have work on the relationships.
> Jacques
> -----Original Message-----
> From: doctrine-dev@googlegroups.com
> [mailto:doctrine-dev@googlegroups.com] On Behalf Of Jonathan Wage
> Sent: Wednesday, April 30, 2008 6:03 AM
> To: doctrine-dev@googlegroups.com
> Subject: [doctrine-dev] Re: Taggable Plugin
> I think the best way to do this right now would be you just have a
> standalone child class extending from Doctrine_Record and have the
> behavior configurable for the Tag model to use. It will default to the
> one bundled with the behavior, but the plugin could be configured to
> use
> something else if required.
> - Jon
> On Wed, Apr 30, 2008 at 4:44 AM, Mushing Fan <jphi...@noatak.com>
> wrote:
> I was trying to create a Taggable plugin, I followed the documentation
> and example of the Versionable plugin, but I am not sure how to
> implement a plugin that needs 2 tables. (A Tag and Taggable class)
> I understood I have to create a Template to extend the classes that
> will be taggable.
> The template instantiates a generator that is placed in its_plugin
> property and eventually adds a listener to act upon changes in the
> records.
> But is it possible to add 2 generators to a template?
> --
> Jonathan Wage
> http://www.jwage.com
> http://www.centresource.com