public function getLocationCategory($con = null) { include_once 'lib/model/om/BaseLocationCategoryPeer.php'; if ($this->aLocationCategory === null && $this->location_category_id !== null) { $this->aLocationCategory = LocationCategoryPeer::retrieveByPK($this->location_category_id, $con); } return $this->aLocationCategory; }