コード例 #1
0
 protected function findModel($id)
 {
     if (($model = UserProfil::findOne($id)) !== null) {
         return $model;
     } else {
         return null;
     }
 }