Repositories
Table of Contents
Traits
- AdvertHardDeleteRepositoryTrait
- Read half of the advert hard delete (Bazaar and Comcat `AdvertRepository`): collects dependent
data the database cascade cannot reach, and the schema foreign-key graph for the coverage check.
- AdvertOwnerContactScrubRepositoryTrait
- Anonymization of a deleted account — contact data of the user's own adverts (Bazaar adverts,
Comcat company profiles; owner = `insert_user_id`), whatever state the advert is in:
- `adverts.email` → '' (the column is not NULL),
- the values of the contact parameters ({@see ContactParameter}) are deleted from the `EAV` table.
- AdvertParameterRuleContextRepositoryTrait
- Scalar read of everything the parameter rules of an advert save need
({@see \App\Core\Form\Parameters\Rules\ParameterRuleEvaluator}): the parameters of the advert's categories,
the rules with their sources, conditions and targets, and the active options of choice parameters.
- DeleteTrait
- GetAllTrait
- GetByTrait
- GetTrait
- PaymentItemScopeTrait
- Builds query parameters over payment items (System user payments, Bazaar/Comcat/Discussion
payment items), optionally narrowed to selected items.
- PersistedValuesTrait
- Raw read of the stored values of a row, for gates in `beforeSave()` that compare the new
state with the database state on UPDATE (for example "does the response price or currency change?").
- SaveTrait
- TotalCountTrait
- TransactionTrait
- TreeTrait
- Nested-set operations on a tree (raw set-based SQL). The mapper resolves properties to
columns and passes ready names plus the scope (column => value).