doctrine-json-odm | object document mapper for Doctrine ORM | JSON Processing library

 by   dunglas PHP Version: v1.2.0 License: MIT

kandi X-RAY | doctrine-json-odm Summary

kandi X-RAY | doctrine-json-odm Summary

doctrine-json-odm is a PHP library typically used in Utilities, JSON Processing, MongoDB, Symfony applications. doctrine-json-odm has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

An Object-Document Mapper (ODM) for Doctrine ORM leveraging new JSON types of modern RDBMS. Did you ever dream of a tool creating powerful data models mixing traditional, efficient relational mappings with modern schema-less and NoSQL-like ones?. With Doctrine JSON ODM, it's now possible to create and query such hybrid data models with ease. Thanks to modern JSON types of RDBMS, querying schema-less documents is easy, powerful and fast as hell (similar in performance to a MongoDB database)! You can even define indexes for those documents. Doctrine JSON ODM allows to store PHP objects as JSON documents in modern, dynamic columns of an RDBMS. It works with JSON and JSONB columns of PostgreSQL (>= 9.4) and the JSON column type of MySQL (>= 5.7.8). For more information about concepts behind Doctrine JSON ODM, take a look at the presentation given by Benjamin Eberlei at Symfony Catalunya 2016.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              doctrine-json-odm has a low active ecosystem.
              It has 452 star(s) with 53 fork(s). There are 15 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 6 open issues and 48 have been closed. On average issues are closed in 167 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of doctrine-json-odm is v1.2.0

            kandi-Quality Quality

              doctrine-json-odm has 0 bugs and 0 code smells.

            kandi-Security Security

              doctrine-json-odm has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              doctrine-json-odm code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              doctrine-json-odm is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              doctrine-json-odm releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.
              doctrine-json-odm saves you 261 person hours of effort in developing the same functionality from scratch.
              It has 678 lines of code, 60 functions and 24 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed doctrine-json-odm and discovered the below as its top functions. This is intended to give you an instant insight into doctrine-json-odm implemented functionality, and help decide if they suit your requirements.
            • Denormalizes data .
            • Prepend framework configuration .
            • Normalize data .
            • Returns the serializer .
            • Converts a value to a serialized database value .
            • Converts a PHP value to a PHP value .
            • Boot the class
            • Load services .
            Get all kandi verified functions for this library.

            doctrine-json-odm Key Features

            No Key Features are available at this moment for doctrine-json-odm.

            doctrine-json-odm Examples and Code Snippets

            No Code Snippets are available at this moment for doctrine-json-odm.

            Community Discussions

            QUESTION

            Dependency-Injection of an Doctrine-Entity into a Service in Symfony4?
            Asked 2019-Sep-01 at 15:28

            I'm trying to inject an Entity via DI into a service.

            The Entity is created from a JSON-Field in the database (which got queried from the user-request) via the Doctrine-JSON-ODM-library (https://github.com/dunglas/doctrine-json-odm).

            I would generally write a Context-class, which would take Request & Repository to return the Dependency( as described here https://blogs.cuttingedge.it/steven/posts/2015/code-smell-injecting-runtime-data-into-components/ ). However since my dependencies rely on deeply nested data inside a tree-structure, this does not seem feasible.

            ...

            ANSWER

            Answered 2019-Sep-01 at 15:28

            Adding to my comment on original post, once you pass the entity as method argument, you can set it as class variable, i.e.:

            $service->method($entity)

            Source https://stackoverflow.com/questions/57747049

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install doctrine-json-odm

            To install the library, use Composer, the PHP package manager:.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/dunglas/doctrine-json-odm.git

          • CLI

            gh repo clone dunglas/doctrine-json-odm

          • sshUrl

            git@github.com:dunglas/doctrine-json-odm.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Consider Popular JSON Processing Libraries

            json

            by nlohmann

            fastjson

            by alibaba

            jq

            by stedolan

            gson

            by google

            normalizr

            by paularmstrong

            Try Top Libraries by dunglas

            mercure

            by dunglasGo

            vulcain

            by dunglasGo

            frankenphp

            by dunglasGo

            react-esi

            by dunglasTypeScript

            DunglasActionBundle

            by dunglasPHP