Beispiel #1
0
 /**
  * Where clause
  * @return string
  * @throws \RuntimeException
  */
 protected final function where()
 {
     if (!$this->NewObject->hasID()) {
         throw new \RuntimeException('Provided object does not have any id.');
     }
     return '`id`=' . $this->NewObject->id();
 }