/** * Insert one new record using the Entity class. * * @param $insertedEntities * @return string */ public function execute($insertedEntities) { $obj = $this->mapper->build([]); $this->fillColumns($obj, $insertedEntities); $this->callMethods($obj, $insertedEntities); $this->mapper->insert($obj); return $obj; }