Malik

RAW Query in Pimcore

August 26, 2021

Use class Pimcore\Db. The available methods can be seen at vendor/pimcore/picmore/lib/Db/ConnectionInterface.php.

Example :

Db::get()->fetchAll("SELECT * FROM object_5");

There are several conditions in which raw SQL queries are better than ORM, so they can improve performance.


Hi there, I'm Malik. This website just to write simple things of what I've done.