You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm passing through the following search criteria, but it's only searching by my name "Ben", the company name is being ignored. How do I use dot notation?
[
'Name' => 'Ben',
'Company.Name' => 'Nike',
]
Here's my PHP code:
// works
public function name($value)
{
return $this->where('Name', 'LIKE', "%$value%");
}
// ignored
public function companyName($value)
{
return $this->related('company', 'Name', 'LIKE', "%$value%");
}
The text was updated successfully, but these errors were encountered:
@Tucker-Eric Do you know what the issue is? Is the key ignored because of the dot? Does it throw a silent error? Does it try to match against an odd/invalid method name (eg: company.Name())?
I'm passing through the following search criteria, but it's only searching by my name "Ben", the company name is being ignored. How do I use dot notation?
Here's my PHP code:
The text was updated successfully, but these errors were encountered: