Doctrine event listener