Skip to content

Instantly share code, notes, and snippets.

@sryabov
Created October 20, 2016 19:44
Show Gist options
  • Save sryabov/944cd7fd50779a0ef3ecd5a700d217ae to your computer and use it in GitHub Desktop.
Save sryabov/944cd7fd50779a0ef3ecd5a700d217ae to your computer and use it in GitHub Desktop.
Установка объекта без получения в Doctrine2
$carReference = $entityManager->getReference('MyBundle:Car',$carId);
$wheel->setCar($carReference);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment