<?php
class Testobject extends AppModel {
	var $name = 'testobject';
	#var $actsAs = array('Containable');
	var $belongsTo = array(
		'Person' => array(
			'className' => 'Person',
			'foreignKey' => 'person_id'
		),
		'Objecttype' => array(
			'className' => 'Objecttype',
			'foreignKey' => 'objecttype_id'
		),
		'Ufile' => array(
			'className' => 'Ufile',
			'foreignKey' => 'ufile_id'
		),
		'Ufile_Raw' => array(
			'className' => 'Ufile',
			'foreignKey' => 'ufile_raw_id'
		),
		'Project' => array(
			'className' => 'Project',
			'foreignKey' => 'project_id'
		),
	);
	var $hasMany = array(
		'Testobjectparameter' => array(
			'className' => 'Testobjectparameter',
			'foreignKey' => 'testobject_id'
		)
	);
	
	var $hasAndBelongsToMany = array(
		'Entity' => array(
			'className' => 'Entity',
			'joinTable' => 'Testobjectparameters',
			'foreignKey' => 'testobject_id',
			'associationForeignKey' => 'entity_id',
			'with' => 'Testobjectparameter'
		)
	);
}
?>
