public function index($index)
    {
        if (empty($this->indexes[$index])) {
            throw new ModelException(sprintf('Unknown index, index "%s" not found in model "%s"', $index, $this->entity));
        }

        return $this->indexes[$index];
    }
public function index($index)
    {
        if (empty($this->indexes[$index])) {
            throw new ModelException(sprintf('Unknown index, index "%s" not found in model "%s"', $index, $this->entity));
        }

        return $this->indexes[$index];
    }
public function index ( $ index ) { if ( empty ( $ this -> indexes [ $ index ] ) ) { throw new ModelException ( sprintf ( 'Unknown index, index "%s" not found in model "%s"' , $ index , $ this -> entity ) ) ; } return $ this -> indexes [ $ index ] ; }
Returns index definition

@param string $index

@return IndexInterface[]
@throws ModelException
Returns index definition