I want to override "soft delete" functionality in symfony 1.4-Doctrine ORM.

I got the file path: lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Template/Listener/SoftDelete.php

But i am not able to override the same file to change the functionality.

有帮助吗?

解决方案


i got the solution.

Override

lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Template/Listener/SoftDelete.php

to

path_to_project/lib/listener/SoftDelete.php

It works for me.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top