Closed tabacitu closed 1 year ago
Why would you try to do that @tabacitu ?
Your relation is called someThing
, why would you use some_thing
? You don't call $this->crud->setup_list_operation
right ?
I think we already do alot of manbo-jamboo to infer relations, I don't think this use-case should ever be supported.
I am sorry to bear the bad news! 🙃
I thought Laravel itself supports this. I mean:
TRUE $model->rewardedUser => relationship
TRUE $model->rewardedUser() => query builder
FALSE $model->rewarded_user => relationship
But no it doesn't. So we don't have to support that either. PHIEW!
Bug report
What I did
I tried doing:
While in my model having:
What I expected to happen
Field show up.
What happened
Undefined array key "relation_type"
What I've already tried to fix it
Nothing yet. @pxpm didn't this work at some point? Did we remove support for snake_case relationships? Or did we never actually have it?