Exemple #1
0
 /**
  * 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);
 }
Exemple #2
0
 /**
  * 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);
 }