setName('Big boss'); $userAdmin->setEmail('bigboss@wallabag.org'); $userAdmin->setUsername('admin'); $userAdmin->setPlainPassword('mypassword'); $userAdmin->setEnabled(true); $userAdmin->addRole('ROLE_SUPER_ADMIN'); $manager->persist($userAdmin); $this->addReference('admin-user', $userAdmin); $bobUser = new User(); $bobUser->setName('Bobby'); $bobUser->setEmail('bobby@wallabag.org'); $bobUser->setUsername('bob'); $bobUser->setPlainPassword('mypassword'); $bobUser->setEnabled(true); $manager->persist($bobUser); $this->addReference('bob-user', $bobUser); $manager->flush(); } /** * {@inheritdoc} */ public function getOrder() { return 10; } }