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