summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaus Beerta <[email protected]>2011-06-12 07:52:28 +0200
committerSimon Holywell <[email protected]>2012-11-12 13:46:45 +0000
commit6358e5abe8e283d0b7f7b4bfe648f901fe85ec72 (patch)
tree15c31b928ba96a29bfd6d15077d10b8be8bbe34a
parent9c84398d361f12fa56546cc31d9e6d4059f3d4f5 (diff)
Put docs at the right spot
-rw-r--r--README.markdown12
1 files changed, 6 insertions, 6 deletions
diff --git a/README.markdown b/README.markdown
index 419d9ab..bea3320 100644
--- a/README.markdown
+++ b/README.markdown
@@ -466,6 +466,12 @@ To delete an object from the database, simply call its `delete` method.
$person = ORM::for_table('person')->find_one(5);
$person->delete();
+To delete more than one object from the database, build a query:
+
+ $person = ORM::for_table('person')
+ ->where_equal('zipcode', 55555)
+ ->delete_many();
+
### Transactions ###
Idiorm doesn't supply any extra methods to deal with transactions, but it's very easy to use PDO's built-in methods:
@@ -521,12 +527,6 @@ Some database adapters require (or allow) an array of driver-specific configurat
ORM::configure('driver_options', array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8'));
-To delete more than one object from the database, build a query:
-
- $person = ORM::for_table('person')
- ->where_equal('zipcode', 55555)
- ->delete_many();
-
#### PDO Error Mode ####