Hello guys!
I'm making a web-app which has almost 50 tables in the database with a lot of relations...
Would be very long to put here all the "schema" of my project.
I have got this error:
Only objects can be stored as part of belongs-to relations
when run save()
method in this line if ($some_data->save() === false) {
$some_data
is an Object
(a big one).
If I run var_dump($some_data);
with xdebug
This will the first line:
object(SomeData)[64]
Could be the way that I map the ORM? How can I debug this kind of issues? Which are the reasons of this error? I really don't know where to search the issue :-(