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.

Certifications & exams

Which exam comes next?

You can already practise for 19 exams, and 21 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications