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

getIndices() public method

Get indices
public getIndices ( ) : Bravo3\Orm\Mappers\Metadata\Index[]
return Bravo3\Orm\Mappers\Metadata\Index[]
    public function getIndices()
    {
        return $this->indices;
    }

Usage Example

Example #1
0
 /**
  * Compile normal indices
  *
  * @param Entity $md
  * @return array
  */
 private function compileStdIndices(Entity $md)
 {
     $out = [];
     $indices = $md->getIndices();
     foreach ($indices as $index) {
         $data = [];
         if ($index->getColumns()) {
             $data[Schema::INDEX_COLUMNS] = $index->getColumns();
         }
         if ($index->getMethods()) {
             $data[Schema::INDEX_METHODS] = $index->getMethods();
         }
         $out[$index->getName()] = $data;
     }
     return $out;
 }
All Usage Examples Of Bravo3\Orm\Mappers\Metadata\Entity::getIndices