load countries

This commit is contained in:
Julien Fastré 2013-10-28 08:56:41 +01:00
parent 7e0139a8c0
commit d17f6f9a32

View File

@ -19,6 +19,9 @@ class LoadCountries extends AbstractFixture {
}
public function load(ObjectManager $manager) {
echo "loading countries... \n";
foreach ($this->countries as $code => $name) {
$country = new \CL\Chill\MainBundle\Entity\Country();
$country->setLabel(ucwords($name));