Manager/AbstractManager.php
protected function prepareEntityForPersist(AbstractEntity $entity): bool
    {
        if ($entity instanceof TimestampableInterface) {
            $entity->setEditionDate(new DateTime());
        }

        return true;
    }
protected function prepareEntityForPersist(AbstractEntity $entity): bool
    {
        if ($entity instanceof TimestampableInterface) {
            $entity->setEditionDate(new DateTime());
        }

        return true;
    }
protected function prepareEntityForPersist ( AbstractEntity $ entity ) : bool { if ( $ entity instanceof TimestampableInterface ) { $ entity -> setEditionDate ( new DateTime ( ) ) ; } return true ; }
Prepares an entity for persist

@param AbstractEntity $entity

@return boolean
Prepares an entity for persist