Hi,
I want to build an own extension and I need to prefill 2 tables.
I thought the right place is in AfterInstall.php
I wrote a php loop with fgetcsv() and get the records.
But I don't know how to add these records to the new entity.
I tried it with $entity->set() but this looks wrong.
How can I add records in AfterInstall.php ?
Best regards,
Bernd
I want to build an own extension and I need to prefill 2 tables.
I thought the right place is in AfterInstall.php
I wrote a php loop with fgetcsv() and get the records.
But I don't know how to add these records to the new entity.
I tried it with $entity->set() but this looks wrong.
How can I add records in AfterInstall.php ?
Best regards,
Bernd
Comment