예제 #1
0
파일: User.php 프로젝트: vfokov/tims2
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getRecords()
 {
     return $this->hasMany(Record::className(), ['user_id' => 'id']);
 }
예제 #2
0
파일: Owner.php 프로젝트: vfokov/tims2
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getRecord()
 {
     return $this->hasOne(Record::className(), ['id' => 'record_id']);
 }
예제 #3
0
파일: Record.php 프로젝트: vfokov/tims2
 /**
  * @inheritdoc
  */
 public function attributeLabels()
 {
     return ArrayHelper::merge(parent::attributeLabels(), ['lat' => 'Latitude', 'lng' => 'Longitude', 'open_date' => 'Case Open date', 'state_id' => 'State', 'user_id' => 'Upload By', 'status_id' => 'Status', 'statusName' => 'Status name']);
 }