wiki:members/GRIP-UQAM/Doctrine_(PHP)

Version 2 (modified by https://id.mayfirst.org/gripuqam, 3 years ago) (diff)

--

doctrine/orm

Doctrine Console

Relations

Cascade

  • doctrine ondelete
  • doctrine one to many cascade
  • 8. Working with Associations readthedocs
  • Doctrine Cascade Options for OneToMany// stackoverflow
  • cascade={“remove”} VS orphanRemoval=true VS ondelete="CASCADE stackoverflow

Events

Extensions - Behaviors

Gedmo are a standard, but Translatable is criticized

Compatibility Issues between Extensions

Audit, Revision or Loggable

Blameable

  • Updates string or reference fields on create, update and even property change with a string or object (e.g. user) Gedmo
  • Track creators and updators of a given entity KNP Labs

Filterable

Geocodable

  • Extensions to PostgreSQL platform in order to work with cube and earthdistance extensions KNP Labs

IpTraceable

  • Inherited from Timestampable, sets IP address instead of timestamp Gedmo

Joinable

  • KNP Labs

Loggable (see Audit, Revision)

References

  • Supports linking Entities in Documents and vice versa Gedmo

ReferenceIntegrity

  • Constrains ODM MongoDB Document references Gedmo

Revision (see Audit, Loggable)

Sluggable

SoftDeleteable

Sortable

Timestampable

Translatable

Translator

  • Explicit way to handle translations Gedmo

Tree

Uploadable

  • Provides file upload handling in entity fields Gedmo