public function getPrimaryKey() { if (!is_array($this->primary)) { throw new InvalidPrimaryKeyException("The primary key must be set as an array"); } return $this->primary; }