I like this solution with postInsert(). It looks better to me than the
listener method :)
On 26 kvě, 23:23, comb wrote:
> hmm.. you're right.. cannot get the simplest things some times...:-D
> But a last question: Isn't it easier to use the PostInsert Record-Hook
> of the Doctrine_Record than to
hmm.. you're right.. cannot get the simplest things some times...:-D
But a last question: Isn't it easier to use the PostInsert Record-Hook
of the Doctrine_Record than to write a listener-class? or is there
something wrong with it?
class Comment extends BaseComment{
//...
public function p
So add a listener to your comment model ! :-)
Before Printing, Think about Your Environmental Responsibility!
Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!
On Wed, May 26, 2010 at 12:29 PM, comb wrote:
> Yeah I thought about Listeners, but I can't find the right hook-
> p
Yeah I thought about Listeners, but I can't find the right hook-
point..
In Tom's link that's not the same problem I have... they need the
listener for a model-record, but I need it for the Comments it self
and not for ie the Video-Records.
In Commentable-Behavior-Class:
public function s