From 903ae8a581fac1e6917fc3e31d2ad8fb91df80c3 Mon Sep 17 00:00:00 2001 From: ctrlaltca <> Date: Thu, 12 Jul 2012 11:21:01 +0000 Subject: standardize the use of unix eol; use svn properties to enforce native eol --- .../northwind-db/protected/database/Territory.php | 118 ++++++++++----------- 1 file changed, 59 insertions(+), 59 deletions(-) (limited to 'demos/northwind-db/protected/database/Territory.php') diff --git a/demos/northwind-db/protected/database/Territory.php b/demos/northwind-db/protected/database/Territory.php index 16f33dea..96006bb1 100644 --- a/demos/northwind-db/protected/database/Territory.php +++ b/demos/northwind-db/protected/database/Territory.php @@ -1,60 +1,60 @@ - array(self::BELONGS_TO, 'Region'), - 'Employees' => array(self::HAS_MANY, 'Employee', 'EmployeeTerritories') - ); - - /** - * @return Region - */ - public function getRegion() - { - //lazy load the region - if($this->_region===null) - $this->_region = Region::finder()->findByPk($this->RegionID); - return $this->_region; - } - - public function setRegion($value) - { - $this->_region=$value; - } - - /** - * @return Employee[] - */ - public function getEmployees() - { - //lazy load - if($this->_employees==null) - $this->setEmployees($this->withEmployees()->findByPk($this->TerritoryID)->getEmployees()); - return $this->_employees; - } - - public function setEmployees($value) - { - //ensure TList - $this->_employees = $value instanceof TList ? $value : new TList($value); - } - - public static function finder($className=__CLASS__) - { - return parent::finder($className); - } -} + array(self::BELONGS_TO, 'Region'), + 'Employees' => array(self::HAS_MANY, 'Employee', 'EmployeeTerritories') + ); + + /** + * @return Region + */ + public function getRegion() + { + //lazy load the region + if($this->_region===null) + $this->_region = Region::finder()->findByPk($this->RegionID); + return $this->_region; + } + + public function setRegion($value) + { + $this->_region=$value; + } + + /** + * @return Employee[] + */ + public function getEmployees() + { + //lazy load + if($this->_employees==null) + $this->setEmployees($this->withEmployees()->findByPk($this->TerritoryID)->getEmployees()); + return $this->_employees; + } + + public function setEmployees($value) + { + //ensure TList + $this->_employees = $value instanceof TList ? $value : new TList($value); + } + + public static function finder($className=__CLASS__) + { + return parent::finder($className); + } +} ?> \ No newline at end of file -- cgit v1.2.3