xiidea / EasyAuditBundle

A Symfony Bundle To Log Selective Events
http://xiidea.github.io/EasyAuditBundle/
MIT License
89 stars 22 forks source link

Error when trying to get property that not exist #15

Closed braianj closed 6 years ago

braianj commented 6 years ago

Hello, I always save the id inside the table. Sometimes it save null because do not have an id. But In a particular table I have a combine primaty key, and the try catch is not working

captura de pantalla de 2017-12-26 14-52-14

captura de pantalla de 2017-12-26 14-52-39

What can I do to catch the error and so return null or another value?

ronisaha commented 6 years ago

You can override getProperties function to suit your need

braianj commented 6 years ago

No need, it works just fine. Te problem is that try catch is not catching, but I catch if the table is the one without id.