Skip to content

Commit

Permalink
added EntityManager::extract()
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Jun 4, 2018
1 parent 45e2816 commit 5dba2a1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/EntityManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@ public function hydrate(array $data, $object)
return $this->hydrator->hydrate($data, $object);
}

public function extract($object)
{
return $this->hydrator->extract($object);
}

/**
* XXX TODO think of the whole process:
* alternative: find and populate whole entity.
Expand Down

0 comments on commit 5dba2a1

Please sign in to comment.