src/Kunstmaan/GeneratorBundle/DataFixtures/ORM/RoleFixtures.php
private function createRole(ObjectManager $manager, $name)
    {
        $role = new Role($name);
        $manager->persist($role);

        return $role;
    }
private function createRole(ObjectManager $manager, $name)
    {
        $role = new Role($name);
        $manager->persist($role);

        return $role;
    }
private function createRole ( ObjectManager $ manager , $ name ) { $ role = new Role ( $ name ) ; $ manager -> persist ( $ role ) ; return $ role ; }
Create a role

@param ObjectManager $manager The object manager
@param string        $name    The name of the role

@return Role
Create a role