Esempio n. 1
0
 public static function initialize($id, $idS)
 {
     $OO = AppBlogsBlogsPeer::retrieveByPK($id);
     if (!$OO instanceof AppBlogsBlogs) {
         $OO = new AppBlogsBlogs();
         $OO->setName('Nom per defecte');
         $OO->setDate(date('Y-m-d', time()));
         $OO->setSiteId($idS);
         $OO->setActiu(true);
     }
     return new AppBlogsBlogsForm($OO, array('IDS' => $idS));
 }