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:
mark_story 2008-12-29 03:20:05 +00:00
parent 18353519ed
commit af799e179a

View file

@ -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'
)
);
}
?>
?>