original_string: 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();
      }
code: 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();
      }
code_tokens: 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 ( ) ; }
docstring: Returns all field instances attached to the table being managed.
  
  @return \Cake\Datasource\ResultSetInterface
docstring_tokens: Returns all field instances attached to the table being managed .