mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Adding missed model classes fixes #5940
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7963 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
18353519ed
commit
af799e179a
1 changed files with 34 additions and 4 deletions
|
@ -2891,12 +2891,42 @@ class TagB extends CakeTestModel {
|
|||
|
||||
class Fruit extends CakeTestModel {
|
||||
var $name = 'Fruit';
|
||||
var $hasAndBelongsToMany = array('UuidTag' => array('with' => 'FruitsUuidTag'));
|
||||
var $hasAndBelongsToMany = array(
|
||||
'UuidTag' => array(
|
||||
'className' => 'UuidTag',
|
||||
'joinTable' => 'fruits_uuid_tags',
|
||||
'foreignKey' => 'fruit_id',
|
||||
'associationForeignKey' => 'uuid_tag_id',
|
||||
'with' => 'FruitsUuidTag'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
class FruitsUuidTag extends CakeTestModel {
|
||||
var $name = 'FruitsUuidTag';
|
||||
var $primaryKey = false;
|
||||
var $belongsTo = array(
|
||||
'UuidTag' => array(
|
||||
'className' => 'UuidTag',
|
||||
'foreignKey' => 'uuid_tag_id',
|
||||
),
|
||||
'Fruit' => array(
|
||||
'className' => 'Fruit',
|
||||
'foreignKey' => 'fruit_id',
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
class UuidTag extends CakeTestModel {
|
||||
var $name = 'UuidTag';
|
||||
var $hasAndBelongsToMany = array('Fruit' => array('with' => 'FruitsUuidTag'));
|
||||
var $hasAndBelongsToMany = array(
|
||||
'Fruit' => array(
|
||||
'className' => 'Fruit',
|
||||
'joinTable' => 'fruits_uuid_tags',
|
||||
'foreign_key' => 'uuid_tag_id',
|
||||
'associationForeignKey' => 'fruit_id',
|
||||
'with' => 'FruitsUuidTag'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
Loading…
Reference in a new issue