Answer the question
In order to leave comments, you need to log in
How to integrate Doctrine 2 into 1C-Bitrix?
I started studying Bitrix ORM and came to the conclusion that the Doctrine is more convenient. Please share your experience: how to work with entities (tables) from the admin panel? How to integrate using Composer is clear. The question mainly refers to working with the database from the admin panel.
How to integrate Doctrine 2 into 1C-Bitrix?
Answer the question
In order to leave comments, you need to log in
Nothing good will come of you.
But if you really want to, then write this class https://github.com/doctrine/dbal/blob/2.7/lib/Doct...
the difference will be that you have to slip the existing connection to \mysqli there, instead creating a new one.
You take the ready connection from bitrix Connection::getResource().
Further you look to dock and you initialize the doctrine with the driver.
This is necessary so that two connections to the database do not hang.
But if you don't care, you can just create a second connection, and then in general the "beauty" will be
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question