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