예제 #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;
 }
예제 #2
0
 /**
  * @return array
  */
 public function getPrimaryKeys()
 {
     return $this->entity->getPrimaryKeys();
 }