Thanks Daniel, that'll do.
From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of Daniel Lohse Sent: woensdag 10 februari 2010 11:10 To: symfony-users@googlegroups.com Subject: Re: [symfony-users] Doctrine - how to detect if behavior exists Yes, that's possible. Inside the model class, do: $this->getTable()->hasTemplate('Timestampable') You can also do getTemplates() which returns all attached templates (= behaviors). Cheers, Daniel On 10.02.2010, at 08:51, Daniel Kucharski wrote: Hi, Is it possible to detect if for a given model class a specific behavior exists? (eg. Does the Timestampable behavior exists for model class User) Kind regards, Daniel -- 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. -- 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. -- 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.