예제 #1
0
 public function getLogs0()
 {
     //return $this->hasOne(Logs::className(), ['id' => 'logs_id']);
     return $this->hasOne(Logs::className(), ['project_id' => 'id'])->orderBy(['id' => SORT_DESC])->limit(1);
 }