Exemplo n.º 1
0
 /**
  * @return bool
  */
 public function isSetPrimaryKey()
 {
     $primaryKey = $this->entity->getPrimaryKeys();
     $_entities = $this->getEntity();
     $bool = true;
     foreach ($primaryKey as $key) {
         if (empty($_entities[$key])) {
             $bool = false;
             break;
         }
     }
     return $bool;
 }
Exemplo n.º 2
0
 /**
  * @return array
  */
 public function getPrimaryKeys()
 {
     return $this->entity->getPrimaryKeys();
 }