src/PHPDish/Bundle/PostBundle/Service/CategoryManager.php
public function createCategory(UserInterface $user)
    {
        $category = new $this->categoryEntity;
        $category->setCreator($user)
            ->setCreatedAt(Carbon::now());

        return $category;
    }
public function createCategory(UserInterface $user)
    {
        $category = new $this->categoryEntity;
        $category->setCreator($user)
            ->setCreatedAt(Carbon::now());

        return $category;
    }
{@inheritdoc}