Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 19, 2024 via composer
Package summary
Share
1
issue
1
moderate severity
license
1
2
licenses
16
MIT
1
Artistic-1.0
Package created
2 Nov 2011
Version published
3 Dec 2023
Maintainers
2
Total deps
17
Direct deps
9
License
MIT

Issues

1

1 moderate severity issue

moderate
Recommendation: Validate that the package complies with your license policy
via: behat/transliterator@v1.5.0
Collapse
Expand

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
16 Packages, Including:
doctrine/annotations@2.0.1
doctrine/collections@2.2.2
doctrine/common@3.4.4
doctrine/deprecations@1.1.3
doctrine/event-manager@2.0.0
doctrine/lexer@3.0.1
doctrine/persistence@3.3.2
gedmo/doctrine-extensions@v3.14.0
psr/cache@3.0.0
psr/container@2.0.2
psr/log@3.0.0
symfony/cache@v7.0.7
symfony/cache-contracts@v3.5.0
symfony/deprecation-contracts@v3.5.0
symfony/service-contracts@v3.5.0
symfony/var-exporter@v7.0.7

Artistic License 1.0

Weakly Protective
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
Cannot
Must
1 Packages, Including:
behat/transliterator@v1.5.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

9
All Dependencies CSV
β“˜ This is a list of gedmo/doctrine-extensions 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
behat/transliteratorv1.5.0143.18 kBArtistic-1.0
prod
1
doctrine/annotations2.0.138.86 kBMIT
prod
doctrine/collections2.2.2-MIT
prod
doctrine/common3.4.4-MIT
prod dev
doctrine/event-manager2.0.05.95 kBMIT
prod
doctrine/persistence3.3.2-MIT
prod
psr/cache3.0.06.01 kBMIT
prod
symfony/cachev7.0.7-MIT
prod
symfony/deprecation-contractsv3.5.0-MIT
prod

Visualizations

Frequently Asked Questions

What does gedmo/doctrine-extensions do?

The gedmo/doctrine-extensions package is an extension set for Doctrine ORM and MongoDB ODM. This package introduces new functionalities and tools to Doctrine to optimize its use. These functionalities alter records in a behavioral way each time they are flushed. The target is to provide mechanisms in Doctrine that attach easily to the event system.

How do you use gedmo/doctrine-extensions?

To use the gedmo/doctrine-extensions, you need to install it first via composer:

composer require gedmo/doctrine-extensions

You can use these extensions in various frameworks such as Symfony, Laravel, and Laminas.

Among the extensions are Blameable, Loggable, Sluggable, Timestampable, Translatable, Tree, IpTraceable, SoftDeleteable, Sortable, Uploadable, References(for MongoDB ODM only), and ReferenceIntegrity(for MongoDB ODM only). You can integrate these extensions using mapping methods such as Attribute, Annotation, and XML.

Here is a hypothetical code example to demonstrate the use of Timestampable (creating and updating dates):

<?php
// src/Entity/Article.php
namespace App\Entity;

use Gedmo\Mapping\Annotation as Gedmo;
use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity(repositoryClass="App\Repository\ArticleRepository")
 */
class Article
{
    //...

    /**
     * @var \DateTime $created
     *
     * @Gedmo\Timestampable(on="create")
     * @ORM\Column(type="datetime")
     */
    private $created;

    /**
     * @var \DateTime $updated
     *
     * @Gedmo\Timestampable(on="update")
     * @ORM\Column(type="datetime")
     */
    private $updated;

    //...
}

In our example, the $created property will get a timestamp when the article is first persisted, and $updated will change each time the article updates.

Where are the gedmo/doctrine-extensions docs?

Documentation and further details on how to use the gedmo/doctrine-extensions can be found in the package's repository on GitHub: https://github.com/doctrine-extensions/DoctrineExtensions. The documentation covers everything from installation to upgrading, usage examples, and further notes on version compatibility.