平成30/ 2018-10-21 05:32
cakephp db mysql condition 条件 where

( Thanks. )
http://webcache.googleusercontent.com/search?q=cache:bBkl_OQDMiYJ:stackoverflow.com/questions/2279958/cakephp-paginate-conditions-in-derived-fields+&cd=6&hl=ja&ct=clnk&gl=jp
      $this->paginate = array('limit' => 30, 'page' => 1,
    'conditions' => array('Competition.Team.sport_id' => '1'),
        'contain' => array('Competition', 'Competition.Team',
        'Gamefield', 'Changingroom', 'ChangingroomAway', 'Gametype'),
    'order'=>array('game_date'=>'asc'),        
    );