protected function _getInstances()
    {
        $conditions = ['EavAttribute.table_alias' => $this->_tableAlias];
        if (!empty($this->_bundle)) {
            $conditions['EavAttribute.bundle'] = $this->_bundle;
        }

        $this->loadModel('Field.FieldInstances');

        return $this->FieldInstances
            ->find()
            ->contain(['EavAttribute'])
            ->where($conditions)
            ->order(['FieldInstances.ordering' => 'ASC'])
            ->all();
    }
protected function _getInstances()
    {
        $conditions = ['EavAttribute.table_alias' => $this->_tableAlias];
        if (!empty($this->_bundle)) {
            $conditions['EavAttribute.bundle'] = $this->_bundle;
        }

        $this->loadModel('Field.FieldInstances');

        return $this->FieldInstances
            ->find()
            ->contain(['EavAttribute'])
            ->where($conditions)
            ->order(['FieldInstances.ordering' => 'ASC'])
            ->all();
    }
protected function _getInstances ( ) { $ conditions = [ 'EavAttribute.table_alias' => $ this -> _tableAlias ] ; if ( ! empty ( $ this -> _bundle ) ) { $ conditions [ 'EavAttribute.bundle' ] = $ this -> _bundle ; } $ this -> loadModel ( 'Field.FieldInstances' ) ; return $ this -> FieldInstances -> find ( ) -> contain ( [ 'EavAttribute' ] ) -> where ( $ conditions ) -> order ( [ 'FieldInstances.ordering' => 'ASC' ] ) -> all ( ) ; }
Returns all field instances attached to the table being managed.

@return \Cake\Datasource\ResultSetInterface
Returns all field instances attached to the table being managed .