Hello,
This is my first post and would like to say I really like this solution.
I have used for more simple tasks and it works perfectly.
The issue I am having at the minute is this error:
Fatal error: Cannot redeclare class GCore\Models\teacherlist in ......... /libraries/cegcore/libs/model.php(142) : eval()'d code on line 4
This is to do with having two models in CronoConnectivity as far as I can see. (both with different names)
I have a model called yearbooklist and another model teacherlist.
What I have tried to achieve is that for this school year (yearbooklist) I will get a list of teachers from another table (teacherlist) using the 'hasMany' relation.
This works fine. I click on the edit button of the yearbook I want and using the debugger I have placed in the form I see an array of the yearbook table for this particular yearbook (yearbooklist) and the 9 teachers in another array (teacherlist) linked to this year.
So when I click submit I get the error mentioned earlier.
I was wondering whether anyone had any ideas?
I have changed lots of settings and played around with changing the join etc might I be missing something obvious?
I am happy to supply more information if required. (probably required)
Thanks in advance for any help.
Regards
Mark
This is my first post and would like to say I really like this solution.
I have used for more simple tasks and it works perfectly.
The issue I am having at the minute is this error:
Fatal error: Cannot redeclare class GCore\Models\teacherlist in ......... /libraries/cegcore/libs/model.php(142) : eval()'d code on line 4
This is to do with having two models in CronoConnectivity as far as I can see. (both with different names)
I have a model called yearbooklist and another model teacherlist.
What I have tried to achieve is that for this school year (yearbooklist) I will get a list of teachers from another table (teacherlist) using the 'hasMany' relation.
This works fine. I click on the edit button of the yearbook I want and using the debugger I have placed in the form I see an array of the yearbook table for this particular yearbook (yearbooklist) and the 9 teachers in another array (teacherlist) linked to this year.
So when I click submit I get the error mentioned earlier.
I was wondering whether anyone had any ideas?
I have changed lots of settings and played around with changing the join etc might I be missing something obvious?
I am happy to supply more information if required. (probably required)
Thanks in advance for any help.
Regards
Mark