Hi,
Hi,
My lazy load not working unless I use camelcase on the model relation function name, is this a convention?
eg:
$service->service_dates => get Null
but when I change the model relation function name to serviceDates
$service->serviceDates => get the data correctly
However if I eager load, Service::with('service_dates')->get() work perfectly
Any advise would be appreciate.
Thank you!
Use camelCase.
Thank you Taylor.. Very happy to get reply from you directly :)) I try to
find this in documentation but couldn't find, could you please point me to
the doc about this convention? I want to understand more
Thank you
On Jun 9, 2014 1:22 AM, "Taylor Otwell" [email protected] wrote:
Use camelCase.
—
Reply to this email directly or view it on GitHub
https://github.com/laravel/framework/issues/4614#issuecomment-45444189.
Most helpful comment
Thank you Taylor.. Very happy to get reply from you directly :)) I try to
find this in documentation but couldn't find, could you please point me to
the doc about this convention? I want to understand more
Thank you
On Jun 9, 2014 1:22 AM, "Taylor Otwell" [email protected] wrote: