Hi
I can anyone help me with manipulating ProFields Table rows?
It works ok using first() and last() as per the README, however I can't seem to manipulate specific items, given a selector. I presume I'm doing something wrong when selecting the row(s).
$tt = $pages->findOne("template=repeater_basetimetables,title=Silver")
// Works - from README
$page->of(false);
$opday = $page->operatingcalendar_days->last();
$opday->timetable = $tt;
$page->save('operatingcalendar_days');
// Doesn't work - set to TableRows is not an allowed type
$page->of(false);
$opday = $page->operatingcalendar_days("ttdate=2022-08-11");
$opday->timetable = $tt;
$page->save('operatingcalendar_days');
// Doesn't work - no error
$page->of(false);
$opday = $page->operatingcalendar_days("ttdate=2022-08-11")->first();
$opday->timetable = $tt;
$page->save('operatingcalendar_days');
Or, do I have to remove and re-create rows I want to modify?
Cheers