$File = _File::with(['profile'=>function(Relation $query){ $query->field(['user_id']); }])->where($where)->find()