How to use ActiveRecords in Contao 3

How to load and save datasets with ActiveRecords in Contao 3