| 13 | | /* public $belongsTo = array('News' => |
| 14 | | array('className' => 'News', |
| 15 | | 'conditions' => null, |
| 16 | | 'order' => null, |
| 17 | | 'limit' => null, |
| 18 | | 'foreignKey' => 'new_id', |
| 19 | | 'dependent' => true, |
| 20 | | 'exclusive' => false, |
| 21 | | 'finderQuery' => '' |
| 22 | | ) |
| 23 | | ); */ |
| | 13 | public $belongsTo = array( |
| | 14 | 'News' => |
| | 15 | array('className' => 'News', |
| | 16 | 'conditions' => null, |
| | 17 | 'order' => null, |
| | 18 | 'limit' => null, |
| | 19 | 'foreignKey' => 'new_id', |
| | 20 | 'dependent' => true, |
| | 21 | 'exclusive' => false, |
| | 22 | 'finderQuery' => '' |
| | 23 | ), |
| | 24 | 'User' => |
| | 25 | array('className' => 'User', |
| | 26 | 'conditions' => null, |
| | 27 | 'fields' => 'id, username', |
| | 28 | 'order' => null, |
| | 29 | 'limit' => null, |
| | 30 | 'foreignKey' => 'user_id', |
| | 31 | 'dependent' => true, |
| | 32 | 'exclusive' => false, |
| | 33 | 'finderQuery' => '' |
| | 34 | ) |
| | 35 | ); |