public function create(AreaModel $area) { $stat = $this->siteContainer['databasehelper']->getPDO()->prepare("INSERT INTO area_information " . "(slug, title, country_id, parent_area_id)" . " VALUES " . "(:slug, :title, :country_id, :parent_area_id)"); $stat->execute(array('slug' => $area->getSlug(), 'title' => $area->getTitle(), 'country_id' => $area->getCountryId(), 'parent_area_id' => $area->getParentAreaId())); $area->setId($this->siteContainer['databasehelper']->getPDO()->lastInsertId()); }