/** * @return Application|False */ public function get_application() { if (!$this->_application) { $this->_application = Application::search()->where('application_id', $this->application_id)->execOne(); } return $this->_application; }
/** * @return Array[Application] */ public function get_applications() { if (!$this->_applications) { $this->_applications = Application::search()->where('user_id', $this->user_id)->exec(); } return $this->_applications; }