/**
* Get the Entity metadata object
*
* @return Entity
*/
public function getEntityMetadata()
{
$entity = new Entity($this->reflection_obj->name, $this->getTableName());
$entity->setColumns($this->getColumns());
$entity->setRelationships($this->getRelationships());
$entity->setIndices($this->getIndices());
$entity->setSortables($this->getSortables());
return $entity;
}