Example #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getRecords()
 {
     return $this->hasMany(Record::className(), ['user_id' => 'id']);
 }
Example #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getRecord()
 {
     return $this->hasOne(Record::className(), ['id' => 'record_id']);
 }
Example #3
0
 /**
  * @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']);
 }