adding doctrine listener sample