src/Core/Db/Facade/InsertFacade.php
public function execute()
	{
		$query  = $this->factory->builder($this->insert)->process();
		$result = $this->pdo->query($query);
		if(!$result)
		{
			throw new \Exception('An error is while the insertion occurred! (query: "' . $query . '")');
		}

		return $this->pdo->lastInsertId();
	}
public function execute()
	{
		$query  = $this->factory->builder($this->insert)->process();
		$result = $this->pdo->query($query);
		if(!$result)
		{
			throw new \Exception('An error is while the insertion occurred! (query: "' . $query . '")');
		}

		return $this->pdo->lastInsertId();
	}
public function execute ( ) { $ query = $ this -> factory -> builder ( $ this -> insert ) -> process ( ) ; $ result = $ this -> pdo -> query ( $ query ) ; if ( ! $ result ) { throw new \ Exception ( 'An error is while the insertion occurred! (query: "' . $ query . '")' ) ; } return $ this -> pdo -> lastInsertId ( ) ; }
Execute the query and insert the expected entries in the database.

@throws \Exception When an error is occurred while the insertion.
Execute the query and insert the expected entries in the database .