Skip to content

Instantly share code, notes, and snippets.

@raulfraile raulfraile/gist:5816283
Last active Dec 18, 2015

Embed
What would you like to do?
<?php
public function load(ObjectManager $manager)
{
$jokes = array(
'There’s no place like 127.0.0.1',
'If at first you don’t succeed; call it version 1.0',
'You know it’s love when you memorize her IP number to skip DNS overhead',
'Beware of programmers that carry screwdrivers',
'What color do you want that database?'
);
foreach ($jokes as $item) {
$joke = new Joke();
$joke->setContent($item);
$manager->persist($joke);
}
$manager->flush();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.