BuildAdvertTrait.php
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.