Mongolid\DataMapper\EntityAssembler::prepareOriginalAttributes PHP Метод

prepareOriginalAttributes() защищенный Метод

Stores original attributes from Entity if needed.
protected prepareOriginalAttributes ( mixed $entity ) : mixed
$entity mixed The entity that may have the attributes stored.
Результат mixed The entity with original attributes.
    protected function prepareOriginalAttributes($entity)
    {
        if ($entity instanceof AttributesAccessInterface) {
            $entity->syncOriginalAttributes();
        }
        return $entity;
    }