You can't do it via the schema, but at any point during bootstrap you can
retrieve the table instance of a model and add/change things with it. Or you
can override the setup method and do it there like you said.

- Jon

On Wed, Dec 30, 2009 at 6:53 AM, Lukas Kahwe Smith <m...@pooteeweet.org>wrote:

> Ahoi,
>
> I am wondering if there is some way to add behaviors (like SoftDelete and
> Blameable) to the sfGuardUser model via the schema.yml. I can add them
> ovbiously by customizing the sfGuardUser model class and adding the
> behaviors inside the setUp() method, but I would rather manage this via the
> schema.yml.
>
> I saw some magic inside the sfGuardDoctrineExtra plugin to add the email
> field to the sfGuardUser model, but I do not know how that really works. In
> general its said that user attributes should be added via an
> sfGuardUserProfile model. But this is not practical for my use case.
>
> regards,
> Lukas Kahwe Smith
> m...@pooteeweet.org
>
>
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "symfony users" group.
> To post to this group, send email to symfony-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en.
>
>
>


-- 
Jonathan H. Wage (+1 415 992 5468)
Open Source Software Developer & Evangelist
sensiolabs.com | jwage.com | doctrine-project.org | symfony-project.org

You should follow me on Twitter: http://www.twitter.com/jwage

You can contact Jonathan about Doctrine, Symfony and Open-Source or for
training, consulting, application development, or business related questions
at jonathan.w...@sensio.com

--

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


Reply via email to