Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 19, 2024 via composer

doctrine/persistence 3.2.0

The Doctrine Persistence project is a set of shared interfaces and functionality that the different Doctrine object mappers share.
Package summary
Share
0
issues
1
license
3
MIT
Package created
8 Jun 2018
Version published
17 May 2023
Maintainers
1
Total deps
3
Direct deps
2
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
3 Packages, Including:
doctrine/event-manager@2.0.0
doctrine/persistence@3.2.0
psr/cache@3.0.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

2
All Dependencies CSV
β“˜ This is a list of doctrine/persistence 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
doctrine/event-manager2.0.05.95 kBMIT
prod
psr/cache3.0.06.01 kBMIT
prod

Visualizations

Frequently Asked Questions

What does doctrine/persistence do?

The Doctrine Persistence package is a part of the Doctrine Project which offers a set of shared interfaces and practical features that various Doctrine object mappers can utilize. The primary functionality of Doctrine Persistence is to provide a common abstraction layer for the persistence of object mappers, a highly significant process in object-relational mapping and database interaction within PHP applications.

How do you use doctrine/persistence?

Implementing Doctrine Persistence within your PHP project is quite straightforward. First, you'll need to add Doctrine Persistance to your composer.json file, which can be accomplished by running the command: composer require doctrine/persistence. The package exposes interfaces like ObjectManager and ObjectRepository that you can utilize in your PHP classes. A simple example could be:

<?php
use Doctrine\Persistence\ObjectManager;

class MyClass {
    private $objectManager;

    public function __construct(ObjectManager $objectManager) 
    {
        $this->objectManager = $objectManager;
    }

    // Other methods can use $this->objectManager to interact with the database.
}

Remember that with Doctrine, your data is persisted by mapping PHP objects to database rows. This concept is advantageous because it provides a consistent programming experience regardless of the database type being used.

Where are the doctrine/persistence docs?

For comprehensive information, guides and usage examples of doctrine/persistence, refer to the official Doctrine Persistence documentation within the Doctrine Project's website. The documentation provides a detailed overview of the library's functionality and covers all necessary steps from installation to advanced uses of the Doctrine Persistence project.