public function getFarm() { if (empty($this->_farm) && !empty($this->farmId)) { $this->_farm = Farm::findPk($this->farmId); } return $this->_farm; }