Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
treffynnon committed Mar 21, 2017
2 parents f2f170c + 5e879fc commit c52eb3e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/querying.rst
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ Selecting rows

.. warning::

You really, should not be doing this, use Idiorm with ``raw_query`()` instead
You really, should not be doing this, use Idiorm with ``raw_query()`` instead
where possible.

Here is a simple query implemented using ``raw_execute()`` - note the call to
Expand All @@ -857,6 +857,7 @@ Here is a simple query implemented using ``raw_execute()`` - note the call to

.. code-block:: php
<?php
$res = ORM::raw_execute('SHOW TABLES');
$statement = ORM::get_last_statement();
$rows = array();
Expand Down Expand Up @@ -885,6 +886,7 @@ return a configured instance of `PDO`_.

.. code-block:: php
<?php
$pdo = ORM::get_db();
foreach($pdo->query('SHOW TABLES') as $row) {
var_dump($row);
Expand Down

0 comments on commit c52eb3e

Please sign in to comment.