If you define n columns and add n + 1 rows it will generate an undefined offset error.
Example .xml file:
<?xml version="1.0" encoding="UTF-8"?>
id11
Therefore a check is necessary. Because $rowElement->children()->count() didn't work for me properly it was necessary to test the index in the foreach instead of testing it beforehand with something like 'if ($rowElement->children()->count() >= count($tableInstanceColumns) {}
If you define n columns and add n + 1 rows it will generate an undefined offset error.
Example .xml file:
<?xml version="1.0" encoding="UTF-8"?>
Therefore a check is necessary. Because $rowElement->children()->count() didn't work for me properly it was necessary to test the index in the foreach instead of testing it beforehand with something like 'if ($rowElement->children()->count() >= count($tableInstanceColumns) {}