public getIndices ( ) : Bravo3\Orm\Mappers\Metadata\Index[] | ||
Результат | Bravo3\Orm\Mappers\Metadata\Index[] |
public function getIndices()
{
return $this->indices;
}
/** * 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; }