Database referential integrity with Doctrine
Jak zachować spójność bazy danych i jak Doctrine może nam w tym pomóc.
Jak zachować spójność bazy danych i jak Doctrine może nam w tym pomóc.
This tree was stored in the table with parentId field, nothing special, and the most obvious way to get the tree is to fetch root element first. The best for rendering is ORM, it allows to render tree recursive from parent to children. And here I could stop writing this article, because this will work. The...
In general, we use the Strategy Pattern when we can do something in several ways depending on some condition. Suppose we have to create some image resize class using GD library. We could create some code like this: class ImageResizer { public function resize(string $filename, string extension, int $newWidth, int $newHeight) ...
Czy jak ustawiasz stan na komponencie, to sprawdzasz, czy komponent nie jest czasem odmontowany? Jeżeli nie sprawdzasz - ten artykuł jest dla Ciebie!
What is the difference between sprinters and marathonians in the context of a developer's work? this post is Marat's thoughts on the matter
One of the most important laws of every programmer explained in an accessible and brief manner
In additional to query status useQuery has so called fetchStatus and isFetching flag. It causes very frequent question about the difference of these flags so I'm trying to explain it.
In the world of React.js useQuery is well-known fetching tool with great documentation. However, often developers have some problems with status understanding, so I had to clarify it for myself.