protected function hydrate(\Asgard\Entity\Entity $entity, array $raw) {
		$this->unserialize($entity, $raw);
		$entity->setParameter('persisted', true);
		$entity->resetChanged();

		return $entity;
	}
protected function hydrate(\Asgard\Entity\Entity $entity, array $raw) {
		$this->unserialize($entity, $raw);
		$entity->setParameter('persisted', true);
		$entity->resetChanged();

		return $entity;
	}
protected function hydrate ( \ Asgard \ Entity \ Entity $ entity , array $ raw ) { $ this -> unserialize ( $ entity , $ raw ) ; $ entity -> setParameter ( 'persisted' , true ) ; $ entity -> resetChanged ( ) ; return $ entity ; }
Converts a raw array to an entity.

@param \Asgard\Entity\Entity     $entity
@param array                     $raw

@return \Asgard\Entity\Entity
Converts a raw array to an entity .