public function getFriend() { return $this->hasOne(Friend::className(), ['cube_id' => 'id'])->from(Friend::tableName() . ' friend'); }