Prado\Data\SqlMap\TSqlMapGateway::insert PHP 메소드

insert() 공개 메소드

Insert is a bit different from other update methods, as it provides facilities for returning the primary key of the newly inserted row (rather than the effected rows), The parameter object is generally used to supply the input data for the INSERT values.
public insert ( $statementName, $parameter = null ) : mixed
리턴 mixed The primary key of the newly inserted row. This might be automatically generated by the RDBMS, or selected from a sequence table or other source.
    public function insert($statementName, $parameter = null)
    {
        $statement = $this->getSqlMapManager()->getMappedStatement($statementName);
        return $statement->executeInsert($this->getDbConnection(), $parameter);
    }