CakePHP Cookbook Documentation 5.x
behavior offers two strategies for how the translations are stored. 1. Shadow table Strategy: This strategy uses a separate “shadow table” for each Table object to store translation of all translated fields object that it’s bound to. Shadow Table Strategy Let’s assume we have an articles table and we want it’s title and body fields to be translated. For that we create a shadow table articles_translations: `title` varchar(255) NOT NULL, `body` text NOT NULL, PRIMARY KEY (`id`,`locale`) ); The shadow table needs id and locale columns which together form the primary key and other columns with same0 码力 | 1080 页 | 939.39 KB | 1 年前3CakePHP Cookbook 4.x
bound to. This is currently the default strategy used by the behavior. 2. Shadow table Strategy: This strategy use a separate “shadow table” for each Table object to store translation of all translated fields country where it is spoken. Shadow Table Strategy Let’s assume we have an articles table and we want it’s title and body fields to be translated. For that we create a shadow table articles_translations: varchar(255) NOT NULL, `body` text NOT NULL, PRIMARY KEY (`id`,`locale`) ); So basically the shadow table needs id and locale columns which together form the primary key and other columns with same0 码力 | 1249 页 | 1.04 MB | 1 年前3CakePHP Cookbook Documentation 5.x
behavior offers two strategies for how the translations are stored. 1. Shadow table Strategy: This strategy uses a separate “shadow table” for each Table object to store translation of all translated fields Documentation, Release 5.x Shadow Table Strategy Let’s assume we have an articles table and we want it’s title and body fields to be translated. For that we create a shadow table articles_translations: NOT NULL, �title� varchar(255) NOT NULL, �body� text NOT NULL, PRIMARY KEY (�id�,�locale�) ); The shadow table needs id and locale columns which together form the primary key and other columns with same0 码力 | 848 页 | 2.53 MB | 1 年前3CakePHP Cookbook 4.x
bound to. This is currently the default strategy used by the behavior. 2. Shadow table Strategy: This strategy use a separate “shadow table” for each Table object to store translation of all translated fields Documentation, Release 4.x Shadow Table Strategy Let’s assume we have an articles table and we want it’s title and body fields to be translated. For that we create a shadow table articles_translations: �title� varchar(255) NOT NULL, �body� text NOT NULL, PRIMARY KEY (�id�,�locale�) ); So basically the shadow table needs id and locale columns which together form the primary key and other columns with same0 码力 | 967 页 | 2.88 MB | 1 年前3Falcon v2.0.0 Documentation
approaches under migration, beware that setting attributes such as items or values would obviously shadow the corresponding mapping interface functions. If an existing project is making extensive use of0 码力 | 184 页 | 671.87 KB | 1 年前3Falcon v2.0.0 Documentation
approaches under migration, beware that setting attributes such as items or values would obviously shadow the corresponding mapping interface functions. If an existing project is making extensive use of0 码力 | 265 页 | 299.57 KB | 1 年前3Falcon v3.0.0-b2 Documentation
approaches under migration, beware that setting attributes such as items or values would obviously shadow the corresponding mapping interface functions. If an existing project is making extensive use of0 码力 | 340 页 | 1.15 MB | 1 年前3Falcon v3.0.0 Documentation
approaches under migration, beware that setting attributes such as items or values would obviously shadow the corresponding mapping interface functions. If an existing project is making extensive use of0 码力 | 344 页 | 1.16 MB | 1 年前3Falcon v3.0.1 Documentation
approaches under migration, beware that setting attributes such as items or values would obviously shadow the corresponding mapping interface functions. If an existing project is making extensive use of0 码力 | 344 页 | 1.16 MB | 1 年前3Falcon v3.0.0-b1 Documentation
approaches under migration, beware that setting attributes such as items or values would obviously shadow the corresponding mapping interface functions. If an existing project is making extensive use of0 码力 | 338 页 | 1.14 MB | 1 年前3
共 26 条
- 1
- 2
- 3