4
Work with systems development in PHP, more focused on e-commerce. Currently I use the PDO to make my connection to a database, but out of curiosity I decided to search about the Doctrine, because when it developed into C# used Nhibernate, who are Framework that take care of this part of the connection and facilitate consultations, among others.
But my doubt would be regarding the performance of Doctrine in relation to the PDO, the memory cost is very likely to be higher in the Doctrine and processing time a little slower.
What would be the Perks and Disadvantages in using the Doctrine instead of PDO?
And what would be your tip, for the use or not use of Doctrine for an Ecommerce?
– Leonardo Patricio
@Leonardopatricio in the end depends on your taste, does not have a direct answer. I particularly make a hybrid use, Orms for simple tasks like INSERTS, UPDATES and trivial SELECTS that only involve a table and from the moment I need to do something more complex where the ORM API starts to get "exotic" I write pure SQL.
– BrunoRB
Vlw by tip, I was thinking of something like this too, simple tasks with Doctrine and complex in PDO.
– Leonardo Patricio