public getPdoStatement ( ) : PDOStatement | ||
리턴 | PDOStatement | the underlying PDOStatement for this command It could be null if the statement is not prepared yet. |
/** * Constructor. * @param TDbCommand the command generating the query result */ public function __construct(TDbCommand $command) { $this->_statement = $command->getPdoStatement(); $this->_statement->setFetchMode(PDO::FETCH_ASSOC); }