LeanMapper\Entity::markAsUpdated PHP Method

markAsUpdated() public method

Marks entity as non-modified (isModified returns false right after this method call)
public markAsUpdated ( )
    public function markAsUpdated()
    {
        $this->row->markAsUpdated();
        foreach ($this->getCurrentReflection()->getEntityProperties() as $property) {
            if ($property->hasRelationship() and $property->getRelationship() instanceof Relationship\HasMany) {
                $relationship = $property->getRelationship();
                $this->row->cleanReferencingAddedAndRemovedMeta($relationship->getRelationshipTable(), $relationship->getColumnReferencingSourceTable(), null, $relationship->getStrategy());
            }
        }
    }