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;
    }