Prado\Data\TDbCommand::getPdoStatement PHP Метод

getPdoStatement() публичный Метод

public getPdoStatement ( ) : PDOStatement
Результат 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

Пример #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);
 }