コード例 #1
0
 /**
  * Save the entity in the database
  *
  * @return     bool  True if the entity has been saved else false
  */
 private function saveInDatabase() : bool
 {
     $sqlMarks = " INSERT INTO %s\n VALUES %s";
     $sql = static::sqlFormat($sqlMarks, $this->entity->getTableName(), $this->getEntityAttributesMarks());
     return DB::prepare($sql)->execute($this->entity->getColumnsValueSQL());
 }