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
When adding a filter control to a grid pulling columns from a related table using an eloquent relationship, only filters using the primary table function. When filtering data based on the related table, no data is filtered. Data returned in the grid is otherwise properly linked.
Filter invocation:
$customerfilter = new FilterControl('CustomerAddresses.AddressID', FilterOperation::OPERATOR_EQ, $input->option('CustomerAddresses.AddressID')),
Eloquent model:
namespace App;
use Illuminate\Database\Eloquent\Model;
class Addresses extends Model
{
protected $connection = 'sqlsrv';
protected $table = 'dbo.Addresses';
public function CustomerAddresses()
{
return $this->hasOne('App\CustomerAddresses', 'AddressID', 'ID');
}
}
The text was updated successfully, but these errors were encountered:
When adding a filter control to a grid pulling columns from a related table using an eloquent relationship, only filters using the primary table function. When filtering data based on the related table, no data is filtered. Data returned in the grid is otherwise properly linked.
Filter invocation:
$customerfilter = new FilterControl('CustomerAddresses.AddressID', FilterOperation::OPERATOR_EQ, $input->option('CustomerAddresses.AddressID')),
Eloquent model:
namespace App;
use Illuminate\Database\Eloquent\Model;
class Addresses extends Model
{
protected $connection = 'sqlsrv';
protected $table = 'dbo.Addresses';
public function CustomerAddresses()
{
return $this->hasOne('App\CustomerAddresses', 'AddressID', 'ID');
}
}
The text was updated successfully, but these errors were encountered: