Re: [symfony-users] Doctrine - how to detect if behavior exists

2010-02-10 Thread Daniel Lohse
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

RE: [symfony-users] Doctrine - how to detect if behavior exists

2010-02-10 Thread Daniel Kucharski
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

[symfony-users] Doctrine - how to detect if behavior exists

2010-02-09 Thread Daniel Kucharski
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