I'm trying to use soft delete behavior with propel. I'm using a custom
plugin for that where I'm setting timestamp for deleted record with
pre delete hook. I've registered delete and select hooks in config/
config.php
sfPropelBehavior::registerHooks('sfpropelsafe', array(
':delete:pre' =>
array('sfPropelSafeBehavior', 'preDelete'),
'Peer:doSelectStmt:doSelectStmt'=> array('sfPropelSafeBehavior',
'doSelectStmt')
));
Now, delete:pre is working file, but Peer:doSelectStmt:doSelectStmt is
not working. in doSelectStmt of BaseModelPeer class
self::getMixerPreSelectHook(__FUNCTION__) is returning proper value
but sfMixer::getCallables(self::getMixerPreSelectHook(__FUNCTION__))
returning NULL. so,
foreach
(sfMixer::getCallables(self::getMixerPreSelectHook(__FUNCTION__)) as
$sf_hook) is not calling the behavior method.
I'm very new to Symfony and trying to learn it. I've added
sfPropelBehavior::add('Employee',array('sfpropelsafe')); in model
outside of the class.
OFFTOPIC: symfony forum registration is not working. looks like
captcha is not getting validated properly though I'm entering right
words.
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
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