Created
November 28, 2015 14:20
-
-
Save aziflaj/58c93f0f91a07e147c34 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Create a user | |
| $user = new User(); | |
| $user->setLastName("Bond"); | |
| $user->setFirstName("James"); | |
| // store a user | |
| $entityManager = $this->getDoctrine()->getManager(); | |
| $entityManager->persist($user); | |
| $entityManager->flush(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment