W
W
why72017-10-03 20:57:11
Doctrine ORM
why7, 2017-10-03 20:57:11

Can I write my own driver for doctrine?

Is it possible to write your own driver for the doctrine so that it does not get the data from the database, and how rational is this?
Those. for example, I want to work with entities through the doctrine, but for the doctrine to take information for these entities, for example, through the api of some service, or from elasticsearch, or from any other source other than the database

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
voronkovich, 2017-10-03
@voronkovich

Can. But, in my opinion, it's better to retrieve data via the API and save it to a local database, sometimes doing synchronization (at some intervals). And to use the doctrine already with a local base.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question