From db071216909799fcc781f9257065f7411214c169 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Ram=C3=B3n=20L=C3=B3pez?= Date: Sun, 18 May 2014 20:23:41 +0200 Subject: where_id_in() for selecting multiple records by primary key --- docs/querying.rst | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'docs') diff --git a/docs/querying.rst b/docs/querying.rst index f86f162..bf140a1 100644 --- a/docs/querying.rst +++ b/docs/querying.rst @@ -275,6 +275,12 @@ Respects the ID column specified in the config. If you are using a compound primary key, you must pass an array where the key is the column name. Columns that don't belong to the key will be ignored. +Shortcut: ``where_id_in`` +''''''''''''''''''''''''' + +This helper method is similar to ``where_id_is`, but it expects an array of +primary keys to be selected. It is compound primary keys aware. + Less than / greater than: ``where_lt``, ``where_gt``, ``where_lte``, ``where_gte`` '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' -- cgit v1.2.3