/** * @return \Propel\Runtime\DataFetcher\DataFetcherInterface */ public function query() { $this->statement = $this->connection->getWrappedConnection()->query($this->sql); return $this->connection->getWrappedConnection()->getDataFetcher($this); }
/** * Creates a Statement instance * * @param string $sql The SQL query for this statement * @param ConnectionWrapper $connection The parent connection * @param array $options Optional driver options */ public function __construct($sql, ConnectionWrapper $connection, $options = array()) { $this->connection = $connection; $this->statement = $connection->getWrappedConnection()->prepare($sql, $options); }