Persisting entities using a REST API

一曲冷凌霜 提交于 2019-12-03 14:18:32

About one year ago I am trying to find the answer to same question with no luck and create own bundle. Unfortunately, I can not share it, because it's proprietary and not intended to be open-source (low amount of settings, made ​​specifically for our corporate API etc). But I can give you some links

  1. At start there is a jms serializer for deserializtion + buzz for http queries. You can wrap it with some service and works done.

  2. Doctrine has some lost solution called drest(doctrine rest).

  3. Also i found some interesting solution also called drest. I dont try to use it, since it is relatively newly. Documentation looks pretty well.

Well Circle has built a complete REST driver for Doctrine which means you can use EXACTLY the same syntax because it IS Doctrine acting as REST client:

https://github.com/CircleOfNice/DoctrineRestDriver

you are looking for a doctrine dbal driver for rest apis i think

I found this question while on the search for the same functionality. However, some time has passed again and it seems now that there is a solution implementing this.

From the documentation:

RAPL (RESTful API Persistence Layer) is a RESTful variant of Doctrine's ORM. It implements the same interfaces, but allows you to store and retrieve entities from a remote (RESTful) API instead of from the database.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!