Save entities to a REST API instead of DB using Doctrine 2

前端 未结 6 694
半阙折子戏
半阙折子戏 2021-02-02 10:00

This is related to my other question: Persisting entities using a REST API.

For a project in Symfony2 I need to be able to persist entities using an remote (third-pa

6条回答
  •  南笙
    南笙 (楼主)
    2021-02-02 10:08

    As a ready-to-use solution wasn't available, I decided to write my own. I called it RAPL. It's heavily inspired by Doctrine's ORM (in fact, it uses many of the interfaces provided by Doctrine Common).

    Using RAPL I can simply write a small YAML file to configure the mapping between my entities and the web service, allowing me to persist/retrieve entities using the custom EntityManager.

提交回复
热议问题