<?php
class Industry extends AppModel {

	var $name = 'Industry';
       
	var $hasAndBelongsToMany = array (
			'Customer' => array(
				'className' => 'Customer',
				'joinTable' => 'industries_customers'
			)
		);


	var $belongsTo = array (
		'ParentIndustry' => array(
			'className' => 'Industries',
			'foreignKey' => 'parent_id'

		)
	);

	var $hasMany = array (
		'subIndustry' => array(
			'className' => 'Industries',
			'foreignKey' => 'parent_id',
			'dependent' => true
		)
	);




}

?>