Problem I’m making a section that shows a list of blogs and how many comments it has without loading any […]
Tag: doctrine
PHP/Doctrine bootstrap for review
Problem Here’s my bootstrap.php for my PHP/MySQL/Doctrine app. It’s my first PHP app so I’m interested in learning from the […]
Filtering queries based on the current user state
Problem I have a Symfony2 project. I have an Entity Asset which can have relations with Category. I store a […]
Php/Doctrine array hydration
Problem According to the Doctrine docs, you should use Array hydration rather than record hydration when retrieving data for read-only […]
Ugly code unit testing with PHPUnit and Doctrine2 (an ORM)
Problem I am trying to unit test a small class that I consider part of the “business-logic” layer of my […]
Symfony rest endpoint for get a number products of one user
Problem I want to improve quality of this symfony rest endpoint (solid principle, Kiss, best practice…) Can you review my […]
Forum system implementation
Problem I have a function which does the following: When new Post Entity is added some fields in Category table […]
Updating data on a blog
Problem I want to make post editing on my blog. I get data from a form and want to put […]
Inserting and updating data for a website monitoring app
Problem I have created an app in which URLs stored in a database are pinged via curl to check their […]