CakePHP Cookbook 2.x
to Get Help page. Welcome to CakePHP! Suggested Follow-up Reading These are common tasks people learning CakePHP usually want to study next: 1. Layouts: Customizing your website layout 2. Elements: Including does not support transactions. fieldList: Equivalent to the $fieldList parameter in Model::save() deep: (since 2.1) If set to true, also associated data is saved; see also saveAssociated() callbacks Set array('Article' => array('title' => 'title 2')), ); To save also associated data with $options['deep'] = true (since 2.1), the two above examples would look like: $data = array( array('title' =>0 码力 | 1096 页 | 958.62 KB | 1 年前3
CakePHP Cookbook 2.x
to Get Help page. Welcome to CakePHP! Suggested Follow-up Reading These are common tasks people learning CakePHP usually want to study next: 1. Layouts: Customizing your website layout 2. Elements: Including not support transactions. • fieldList: Equivalent to the $fieldList parameter in Model::save() • deep: (since 2.1) If set to true, also associated data is saved; see also saveAssociated() • callbacks array('Article' => array('title' => 'title 2')), ); To save also associated data with $options['deep'] = true (since 2.1), the two above examples would look like: $data = array( array('title' => 'title0 码力 | 820 页 | 2.52 MB | 1 年前3
CakePHP Cookbook 3.x
to Get Help page. Welcome to CakePHP! Suggested Follow-up Reading These are common tasks people learning CakePHP usually want to study next: 1. Layouts: Customizing your website layout 2. Elements: Including sub-subsections. ^ Is used for sub-sub-subsections. Headings should not be nested more than 5 levels deep. Headings should be preceded and followed by a blank line. Paragraphs Paragraphs are simply blocks $articles->find()->contain([ 'Authors.Addresses', 'Comments.Authors' ]); You can eager load associations as deep as you like: $query = $products->find()->contain([ 'Shops.Cities.Countries', 'Shops.Managers'0 码力 | 1244 页 | 1.05 MB | 1 年前3
CakePHP Cookbook 4.x
to Get Help page. Welcome to CakePHP! Suggested Follow-up Reading These are common tasks people learning CakePHP usually want to study next: 1. Layouts: Customizing your website layout 2. Elements: Including sub-subsections. ^ Is used for sub-sub-subsections. Headings should not be nested more than 5 levels deep. Headings should be preceded and followed by a blank line. Paragraphs Paragraphs are simply blocks $articles->find()->contain([ 'Authors.Addresses', 'Comments.Authors' ]); You can eager load associations as deep as you like: $query = $products->find()->contain([ 'Shops.Cities.Countries', 'Shops.Managers'0 码力 | 1249 页 | 1.04 MB | 1 年前3
CakePHP Cookbook Documentation 5.xsub-subsections. ^ Is used for sub-sub-subsections. Headings should not be nested more than 5 levels deep. Headings should be preceded and followed by a blank line. Paragraphs Paragraphs are simply blocks $articles->find()->contain([ 'Authors.Addresses', 'Comments.Authors' ]); You can eager load associations as deep as you like: $query = $products->find()->contain([ 'Shops.Cities.Countries', 'Shops.Managers' ($q) { return $q->where(['Articles.created >=' => new DateTime('-10 days')]); }); Filtering by deep associations uses the same predictable syntax from contain(): // In a controller or table method0 码力 | 1080 页 | 939.39 KB | 1 年前3
CakePHP Cookbook 3.x
to Get Help page. Welcome to CakePHP! Suggested Follow-up Reading These are common tasks people learning CakePHP usually want to study next: 1. Layouts: Customizing your website layout 2. Elements: Including sub-subsections. • ^ Is used for sub-sub-subsections. Headings should not be nested more than 5 levels deep. Headings should be preceded and followed by a blank line. 63 https://en.wikipedia.org/wiki/Register_(linguistics) $articles->find()->contain([ 'Authors.Addresses', 'Comments.Authors' ]); You can eager load associations as deep as you like: $query = $products->find()->contain([ 'Shops.Cities.Countries', 'Shops.Managers' ]);0 码力 | 967 页 | 2.80 MB | 1 年前3
CakePHP Cookbook 4.x
to Get Help page. Welcome to CakePHP! Suggested Follow-up Reading These are common tasks people learning CakePHP usually want to study next: 1. Layouts: Customizing your website layout 2. Elements: Including sub-subsections. • ^ Is used for sub-sub-subsections. Headings should not be nested more than 5 levels deep. Headings should be preceded and followed by a blank line. 59 https://en.wikipedia.org/wiki/Register#Linguistics $articles->find()->contain([ 'Authors.Addresses', 'Comments.Authors' ]); You can eager load associations as deep as you like: $query = $products->find()->contain([ 'Shops.Cities.Countries', 'Shops.Managers' ]);0 码力 | 967 页 | 2.88 MB | 1 年前3
CakePHP Cookbook Documentation 5.xsub-subsections. • ^ Is used for sub-sub-subsections. Headings should not be nested more than 5 levels deep. Headings should be preceded and followed by a blank line. 50 https://en.wikipedia.org/wiki/Register#Linguistics $articles->find()->contain([ 'Authors.Addresses', 'Comments.Authors' ]); You can eager load associations as deep as you like: $query = $products->find()->contain([ 'Shops.Cities.Countries', 'Shops.Managers' ]); function ($q) { return $q->where(['Articles.created >=' => new DateTime('-10 days')]); }); Filtering by deep associations uses the same predictable syntax from contain(): // In a controller or table method0 码力 | 848 页 | 2.53 MB | 1 年前3
共 8 条
- 1













