Traits
Table of Contents
Traits
- BuildAdvertTrait
- Builds the Advert entity from submitted values: the entity's own columns (password, IP,
user, language, email, region, expiration). `categoryRels` is not populated; it is passed
through meta in `processSubmit()` (as in the Discussion pattern), because the hydrator
would fail on a newly created advert (id=null) generating the reference key for the
association PK of the rel entities.
- FormFieldsTrait
- Meta fields beyond the parameters: the edit password and reCAPTCHA.
- LoadingTrait
- Loads parameters, parameter groups and extra items for selects (currency, region), plus
pre-fill values from the edited Advert entity.
- UploaderTrait
- Configuration of the shared UploaderDropzone components for IMAGE_UPLOADER and
FILE_UPLOADER parameters. Each type has its own child (`imgUploader` / `fileUploader`)
with its own temp folder. Upload/remove signals go straight to the child uploader.