Esempio n. 1
0
 /**
  * Get object foreign keys
  *
  * @return array
  */
 public function getOrmForeignKeys()
 {
     if (!self::$_foreignKeys) {
         return array();
     }
     $data = $this->_objectConfig->getForeignKeys();
     $keys = array();
     if (!empty($data)) {
         foreach ($data as $item) {
             $keyName = md5(implode(':', $item));
             $keys[$keyName] = $item;
         }
     }
     return $keys;
 }