Bravo3\Orm\Mappers\Metadata\Entity::setIndices PHP Метод

setIndices() публичный Метод

Set indices
public setIndices ( array $indices )
$indices array
    public function setIndices(array $indices)
    {
        $this->indices = $indices;
        return $this;
    }

Usage Example

Пример #1
0
 /**
  * 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;
 }