From: Daniel Westermann-Clark Date: Fri, 28 Jul 2006 04:25:35 +0000 (+0000) Subject: Add missing quote to example. I looked over this last night, but I guess my eyes... X-Git-Tag: v0.07002~60 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=36d41f4cbf775d4dd817e4ac0ffbd5b97639461f;p=dbsrgits%2FDBIx-Class.git Add missing quote to example. I looked over this last night, but I guess my eyes aren't working as well anymore. --- diff --git a/lib/DBIx/Class/Manual/FAQ.pod b/lib/DBIx/Class/Manual/FAQ.pod index fb66f07..8b8baed 100644 --- a/lib/DBIx/Class/Manual/FAQ.pod +++ b/lib/DBIx/Class/Manual/FAQ.pod @@ -190,12 +190,12 @@ Then you can use the alias in your C attribute. The first argument to C is a hashref of accessor names and values to filter them by, for example: - ->search({'created_time' => { '>=', '2006-06-01 00:00:00'} }) + ->search({'created_time' => { '>=', '2006-06-01 00:00:00' } }) Note that to use a function here you need to make the whole value into a scalar reference: - ->search({'created_time' => \'>= yesterday() }) + ->search({'created_time' => \'>= yesterday()' }) =item .. search in several tables simultaneously? @@ -205,7 +205,7 @@ then supply the name of the relationship to the C attribute in your search, for example when searching in the Books table for all the books by the author "Fred Bloggs": - ->search({'authors.name' => 'Fred Bloggs'}, { join => 'authors'}) + ->search({'authors.name' => 'Fred Bloggs'}, { join => 'authors' }) The type of join created in your SQL depends on the type of relationship between the two tables, see L