示例#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;
 }
示例#2
0
文件: User.php 项目: eventsd/eventsd
 /**
  * @return Array[Application]
  */
 public function get_applications()
 {
     if (!$this->_applications) {
         $this->_applications = Application::search()->where('user_id', $this->user_id)->exec();
     }
     return $this->_applications;
 }