Fix - Add control - if newValue is object



[Doctrine\ORM\ORMInvalidArgumentException]                                       
  EntityManager#persist() expects parameter 1 to be an entity object, NULL given.