Registry / orm / knplabs-doctrine-behaviors

knplabs-doctrine-behaviors

JSON →
library3.1.0phppackagistunverified

Doctrine Behavior Traits

composer require knplabs/doctrine-behaviors
INSTALL
IMPORT
SIG · KNPLABS-DOCTRINE-B
K
knplabs-doctrine-behaviors
ormphpv3.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

TimestampableTrait
use Knp\DoctrineBehaviors\Model\Timestampable\TimestampableTrait;

Use the Timestampable trait in a Doctrine entity to automatically manage created/updated timestamps.

use Knp\DoctrineBehaviors\Model\Timestampable\TimestampableTrait; class Entity { use TimestampableTrait; }
Debug
Known issues
breakingRequires PHP 7.4 or higher.
fix
Ensure your PHP version meets the requirement.
affects: >=3.0
Upgrade
Version history
3.1.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
18
OpenAI (training)
2
Resources
knplabs-doctrine-behaviors — pip install knplabs-doctrine-behaviors · libregistry