Download the PHP package kikwik/doctrine-relation-count-bundle without Composer
On this page you can find all versions of the php package kikwik/doctrine-relation-count-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download kikwik/doctrine-relation-count-bundle
More information about kikwik/doctrine-relation-count-bundle
Files in kikwik/doctrine-relation-count-bundle
Download kikwik/doctrine-relation-count-bundle
More information about kikwik/doctrine-relation-count-bundle
Files in kikwik/doctrine-relation-count-bundle
Vendor kikwik
Package doctrine-relation-count-bundle
Short Description Manage counter as database property for doctrine relations
License MIT
Package doctrine-relation-count-bundle
Short Description Manage counter as database property for doctrine relations
License MIT
Please rate this library. Is it a good library?
Informations about the package doctrine-relation-count-bundle
Kikwik/DoctrineRelationCountBundle
Manage counter as database property for doctrine relations
Installation
- require the bundle
Usage
-
Add an integer field in the related classes wich will contain the count value, setter is not required.
- Add the
#[CountableEntity]
attribute on top of your child class - Add the
#[CountableRelation]
attribute on the ManyToOne or ManyToMany relations which you would count - Set the
targetProperty
parameter to the count property in the related class
Custom updater
If you need to use a customized query for the counter update you can define a updateCountableRelation
method in your child repository
All versions of doctrine-relation-count-bundle with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
symfony/framework-bundle Version ^6.4|^7.0
symfony/property-access Version ^6.4|^7.0
doctrine/orm Version ^2.14 || ^3.0
doctrine/doctrine-bundle Version ^2.8
symfony/framework-bundle Version ^6.4|^7.0
symfony/property-access Version ^6.4|^7.0
doctrine/orm Version ^2.14 || ^3.0
doctrine/doctrine-bundle Version ^2.8
The package kikwik/doctrine-relation-count-bundle contains the following files
Loading the files please wait ....