Example #1
0
 public function getCube()
 {
     return $this->hasOne(Cube::className(), ['id' => 'cube_id'])->inverseOf('friend');
 }