function &create($isNew = true) { $category = new Category(); if ($isNew) { $category->setNew(); } return $category; }