Prado\Data\TDbCommand::getPdoStatement PHP Method

getPdoStatement() public method

public getPdoStatement ( ) : PDOStatement
return PDOStatement the underlying PDOStatement for this command It could be null if the statement is not prepared yet.
    public function getPdoStatement()
    {
        return $this->_statement;
    }

Usage Example

Beispiel #1
0
 /**
  * Constructor.
  * @param TDbCommand the command generating the query result
  */
 public function __construct(TDbCommand $command)
 {
     $this->_statement = $command->getPdoStatement();
     $this->_statement->setFetchMode(PDO::FETCH_ASSOC);
 }