Exemple #1
0
 /**
  * Returns all linked AuditData instances
  * @return AuditData[]
  */
 public function getExtraData()
 {
     return static::hasMany(AuditData::className(), ['audit_id' => 'id']);
 }
 /**
  * Returns all linked data records
  * @return ActiveQuery
  */
 public function getData()
 {
     return static::hasMany(AuditData::className(), ['entry_id' => 'id'])->indexBy('type');
 }