protected function entityORM(\Asgard\Entity\Entity $entity) {
		if($entity->isNew())
			return $this->orm($entity->getClass());
		else
			return $this->orm($entity->getClass())->where(['id' => $entity->id]);
	}
protected function entityORM(\Asgard\Entity\Entity $entity) {
		if($entity->isNew())
			return $this->orm($entity->getClass());
		else
			return $this->orm($entity->getClass())->where(['id' => $entity->id]);
	}
protected function entityORM ( \ Asgard \ Entity \ Entity $ entity ) { if ( $ entity -> isNew ( ) ) return $ this -> orm ( $ entity -> getClass ( ) ) ; else return $ this -> orm ( $ entity -> getClass ( ) ) -> where ( [ 'id' => $ entity -> id ] ) ; }
Create an ORM instance for a specific entity.
@param  \Asgard\Entity\Entity $entity
@return ORMInterface
Create an ORM instance for a specific entity .