Changes between Version 65 and Version 66 of AjaxList


Ignore:
Timestamp:
2010-09-08T17:01:56Z (14 years ago)
Author:
Serge Okon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AjaxList

    v65 v66  
    207207The joined in columns should be included in the $columns list, if you'd like to display them. The columns you're joining on (in local model) also need to be present in the $columns list, but may be of hidden-type if you prefer not to display them. Remember, all the columns that are referred to by Ajax List must be in the $columns list.
    208208
    209 If the foreign key is not "id", you should create an index in MySQL for the foreign key's column. The speed degradation will be awefull if the joinTable has 1000+ entries, and no index is present (~10 or more seconds per list page)
     209If the foreign key is not "id", you should create an index in MySQL for the foreign key's column. The speed degradation will be awefull if the joinTable has 1000+ entries, and no index is present (~10 or more seconds per list page).
     210
     211A real example from the evaluations controller, to join in the Group, the Event, and the Course
     212{{{
     213#!php
     214        $joinTables = array(
     215            array( "joinTable" => "groups",
     216                   "joinModel" => "Group",
     217                   "localKey" => "group_id"),
     218            array( "joinTable" => "events",
     219                   "joinModel" => "Event",
     220                   "localKey" => "event_id"),
     221            array("joinTable" => "courses",
     222                  "joinModel" => "Course",
     223                  "localkey" => "course_id")
     224          );
     225}}}
    210226
    211227==== Join Table Filters ====