Sign In
Start Page | Recent Changes | All Pages | Orphan Pages | Junebug Help

Comparing version 5 and version 4

h3. Simple examples

h4. Query all records of a given model



  
    , 
    , 
     
h4. Simple search with conditions


  
    
      , 
      , 
       
Number of records returned:
h3. Summary of the tags shown h4. model tag Attribute: * name:*name*: (required) specify model name here h4. model:find There are two main operation modes for model:find: * if *id* attribute was given that it returns the record with the given id * if no *id* was specified than a group of records will be returned Either modes support the same tags. * *limit*, *order*, *conditions* attributes will be passed to Model.find(...) If *distinct* attribute was given than the following query will run: SELECT DISTINCT(*distinct*) FROM model WHERE *conditions* etc...

Back to Page