Skip to content

Instantly share code, notes, and snippets.

@Stunc0
Last active June 29, 2017 12:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Stunc0/97e164a02bcd250281e0dc412c5dd9b6 to your computer and use it in GitHub Desktop.
Save Stunc0/97e164a02bcd250281e0dc412c5dd9b6 to your computer and use it in GitHub Desktop.
[Symfony Doctrine] #symfony #entity #doctrine #findAll #find
//find all object from ObjectClass
$this->getDoctrine()->getRepository(ObjectClass::getClass())->findAll()
//save object
$this->getDoctrine()->getManager()->flush($object);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment