<?php
class Testobjectparameter extends AppModel {
	var $name = 'Testobjectparameter';
	#var $actsAs = array('Containable');
	var $belongsTo = array(
		'Entity' => array(
			'className' => 'Entity',
			'foreignKey' => 'entity_id'
		),
		'Testobject' => array(
			'className' => 'Testobject',
			'foreignKey' => 'testobject_id'
		)
	);
	var $hasMany = array(
		'Testobjectresult' => array(
			'className' => 'Testobjectresult',
			'foreignKey' => 'testobjectparameter_id'
		)
	);
	
	var $hasAndBelongsToMany = array(
		'Attribute' => array(
			'className' => 'Attribute',
			'associationForeignKey' => 'attributeandvalue_id',
			'foreign_key' => 'testobjectparameter_id',
			'joinTable' => 'Testobjectresults',
			'with' => 'Testobjectresult'
		)
	);
}
?>
