Persistence · Question 2 of 12
Which properties do you not need to declare yourself in an Extbase model that extends AbstractEntity?
2 answers are correct. Easy
Show answer
Answer
- B uid
- C pid
Explanation
uid and pid are inherited from AbstractEntity, together with getUid(), getPid() and setPid(). getUid() returns null as long as a new object has not been saved yet. All other fields the model should use – including system fields such as crdate or sorting – must be added by yourself as a typed protected property with a default value and a getter. title exists in many tables, but it is an ordinary field of your own table.