Persistence · Question 1 of 12
Where is an Extbase domain model located and which class does it usually extend?
1 answer is correct. Easy
Show answer
Answer
- A In Classes/Domain/Model/, it extends \
TYPO3\ CMS\ Extbase\ DomainObject\ AbstractEntity
Explanation
A domain model is a PHP class that represents one kind of data of the extension, for example a conference; each instance corresponds to one record. By convention, models live in Classes/Domain/Model/ and extend AbstractEntity, e.g. class Conference extends AbstractEntity. The base class provides uid and pid as well as tracking of changed properties, so that only changed columns are written when saving. Resources/ is meant for templates, language files and other non-PHP files; PHP classes belong in Classes/.