コード例 #1
0
ファイル: Type.php プロジェクト: aiesh/magento2
 /**
  * Retrieve form type entity types
  *
  * @param FormType $object
  * @return array
  */
 public function getEntityTypes($object)
 {
     $objectId = $object->getId();
     if (!$objectId) {
         return array();
     }
     $adapter = $this->_getReadAdapter();
     $bind = array(':type_id' => $objectId);
     $select = $adapter->select()->from($this->getTable('eav_form_type_entity'), 'entity_type_id')->where('type_id = :type_id');
     return $adapter->fetchCol($select, $bind);
 }
コード例 #2
0
ファイル: Type.php プロジェクト: whoople/magento2-testing
 /**
  * Retrieve form type entity types
  *
  * @param FormType $object
  * @return array
  */
 public function getEntityTypes($object)
 {
     $objectId = $object->getId();
     if (!$objectId) {
         return [];
     }
     $connection = $this->getConnection();
     $bind = [':type_id' => $objectId];
     $select = $connection->select()->from($this->getTable('eav_form_type_entity'), 'entity_type_id')->where('type_id = :type_id');
     return $connection->fetchCol($select, $bind);
 }