summaryrefslogtreecommitdiff
path: root/demos/northwind-db/protected/database/Employee.php
blob: 7a678f57393c409e1d0bc307c4178de68b038197 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
/**
 * Auto generated by prado-cli.php on 2007-05-01 05:29:32.
 */
class Employee extends TActiveRecord
{
	const TABLE='Employees';

	public $EmployeeID;
	public $LastName;
	public $FirstName;
	public $Title;
	public $TitleOfCourtesy;
	public $BirthDate;
	public $HireDate;
	public $Address;
	public $City;
	public $Region;
	public $PostalCode;
	public $Country;
	public $HomePhone;
	public $Extension;
	public $Photo;
	public $Notes;
	public $ReportsTo;
	public $PhotoPath;

	public $Territories=array();
	public $Orders=array();
	public $Subordinates=array();
	public $Superior;

	protected static $RELATIONS = array
	(
		'Territories' => array(self::HAS_MANY, 'Territory', 'EmployeeTerritories'),
		'Orders' => array(self::HAS_MANY, 'Order'),

		//parent children relationship
		'Subordinates' => array(self::HAS_MANY, 'Employee'),
		'Superior' => array(self::BELONGS_TO, 'Employee')
	);

	public static function finder($className=__CLASS__)
	{
		return parent::finder($className);
	}
}
?>