9 search results for UnitOfWork
Learn APIs
API Platform 3 Part 2: Security for your Treasures
... with validation... but with the help of a special class from Doctrine called the UnitOfWork. Alrighty, let's whip up a test to shine a light on this pesky bug. Inside tests/Functional/, open UserResourceTest. Copy the ...
Developer Tools
Blackfire.io: Revealing Performance Secrets with Profiling
... not very useful: the top item is where our script starts executing, the second is the next function call, and so on. Go back to exclusive. So apparently, the biggest problem, according to exclusive time, is this UnitOfWork ...
API Platform 3 Part 3: Custom Resources
... #[TreasuresAllowedOwnerChange]. In the last tutorial, we put this above that same $dragonTreasures property, but inside the User entity. The validator would loop over each DragonTreasure, use Doctrine's UnitOfWork to get the $originalOwnerId ...
Symfony Conference Presentations
SymfonyCon 2018 Lisbon Conference Videos
... And that's no, no that's intentional because basically the EntityManager will pass its called to the UnitOfWork and the UnitOfWork will store all those things. So when we pass in the Order, the UnitOfWork will figure out ...
... of DragonTreasure objects, loop over them, then use Doctrine's UnitOfWork to see what each DragonTreasure looked like when it was originally loaded from the database. Should we use that same trick here to see what the ...
There are two different ways to optimize any function: either optimize the code inside that function or you can try to call the function less times. In our case, we found that the most problematic function is UnitOfWork ...
... that this was a good change. Really, it's a huge win! On the call graph, in the darkest blue, the critical path this time is the path that improved the most. Click the UnitOfWork call now. Wow. The inclusive time is down ...
... optimize those queries if it can. But the big problem with our old code was something related to Doctrine's UnitOfWork::computeChangeSet(). Each time you call flush() in Doctrine, it looks at all the objects it has queried ...
... homepage-original. Ok! 165 milliseconds! Let's view the call graph. Well... this looks familiar! We have the same number 1 exclusive-time function as before: UnitOfWork::createEntity(). In that situation, it meant that ...