'Doctrine 2' Category

  • Zf2 Doctrine 2 Log Every Entity Change

    September 18, 2015

    In this article I will show a simple way to log every change to doctrine 2 entity. This one will not be copy / paste. Just check out the code and help yourself. 1. Create event service /** * @developer Ivan Gospodinow */ namespace Application\Service; use Application\Entity\DbLogEntity; use Application\Entity\AbstractEntity; use Doctrine\Common\Persistence\Event\LifecycleEventArgs; use \DateTime; class DoctrineLogChangesService […]

 
Powered by Wordpress and MySQL. Theme by Shlomi Noach, openark.org