Bravo3\Orm\Mappers\Metadata\Entity::setSortables PHP Method

setSortables() public method

Set Sortables
public setSortables ( array $sortables )
$sortables array
    public function setSortables(array $sortables)
    {
        $this->sortables = $sortables;
        return $this;
    }

Usage Example

 /**
  * 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;
 }
All Usage Examples Of Bravo3\Orm\Mappers\Metadata\Entity::setSortables