The $original object is retrieved via a getByDate function which uses the QueryBuilder. ($result = $qb->getQuery()->getResult(); return $result[0]). Does that answer your question?
(the second bit of code works, but is kinda prone to errors so I'm looking for a better approach) Op woensdag 19 augustus 2015 14:12:15 UTC+2 schreef Parsifal: > > Ho do you instantiate $price? Do you use "new Price()" or "find" to load > an already existing entity? > -- You received this message because you are subscribed to the Google Groups "doctrine-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/doctrine-user. For more options, visit https://groups.google.com/d/optout.
