hi,

I am trying to write a plugin to make a table "actas" Commentable.

so in
class Doctrine_Commentable extends Doctrine_Record_Generator
{
}
I create a table that contain the comments (ORIGINALTABLE_comment), so
I have more than one table, because I have different commentable table
(ex: blog, forum, product..)
I have not choose to have a single table for all the comment and so
have a schame.yml.

it works fine,
but the generated files are not like a plugin. I mean with an abstract
PluginFile and the files that extend.
All the generated files are in the project with :

$builderOptions = array(
          'suffix'                => '.class.php',
          'baseClassesDirectory'  => 'base',
          'generateBaseClasses'   => true,
          'generateTableClasses'  => true,
          'baseClassName'         => 'sfDoctrineRecord',
          'package'               =>
'dqlActAsCommentablePlugin.lib.model.doctrine',
          'is_package_class' => true,
      );

      $this->setOption('builderOptions', $builderOptions);

      $this->setOption('generatePath', sfConfig::get
('sf_lib_dir').DIRECTORY_SEPARATOR.'model'.DIRECTORY_SEPARATOR.'doctrine'.DIRECTORY_SEPARATOR.'dqlActAsCommentablePlugin');
      $this->setOption('packagesPath', sfConfig::get
('sf_plugins_dir'));

Does anyone have an idea how to do that ?

Thanks

--

You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.


Reply via email to