Projet

Général

Profil

Actions

Evolution #1875

ouvert

Consistent use of foreign entries

Ajouté par Johan Cwiklinski il y a 25 jours. Mis à jour il y a 21 jours.

Statut:
Nouveau
Priorité:
Normal
Assigné à:
Catégorie:
Backend
Version cible:
-
Début:
28/09/2024
Echéance:
% réalisé:

0%

Temps estimé:

Description

Foreign key related values are handled differently... Some rely on properties that can be either null, the id as integer, or even an object instance. Sometimes it's just object instance, other times just the ID...
That's quite hard to understand; and that also can cause issues if we want to rely on an ORM like Doctrine.

It must be changed so we have:
  • a local property name that uses the Object::PK,
  • another one for the instantiated object; loaded per dependency/on demand.

Some foreign values are only loaded on demand, but some other are always loaded and tha cannot be changed (Title in the Adherent class for example).

Actions

Formats disponibles : Atom PDF