Changes between Version 63 and Version 64 of AjaxList


Ignore:
Timestamp:
2010-09-08T16:54:41Z (14 years ago)
Author:
Serge Okon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AjaxList

    v63 v64  
    196196                                        //     list's column to join another table, user this variable to specify
    197197                                        //     that joined Model's name here.
     198),
     199   array( "joinTable" => "table_name2",
     200          "joinModel" => "JoinModel2",
     201           "localKey" => "local_key",
     202          "foreignKey"=>"foreign_key2",
     203          "localModel" => "LocalModel",
     204));
    198205}}}
    199206
    200207The 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.
    201208
     209If the foreign key is not "id", you should create an indel in MySQL for that column, or the speed degradation will be awefull if the joinTable has 1000+ entries.
    202210
    203211==== Join Table Filters ====