Ejemplo n.º 1
0
 public static function update($file, $anak = null)
 {
     $fl = Files::find($file['id']);
     $fl = FilesDAO::exchangeArray($fl, $file);
     if (!is_null($anak)) {
         $fl->Anak()->associate($anak);
     }
     $fl->update();
     return $fl;
 }