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
public function type()
{
return $this->hasOne('Type', 'id', 'type_id');
}
I get
A PHP Error was encountered
Severity: Notice
Message: Array to string conversion
Filename: Eloquent/Model.php
Line Number: 1149
An uncaught Exception was encountered
Type: Illuminate\Database\QueryException
Message: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'programs.Array' in 'where clause' (SQL: select * from `programs` where `programs`.`Array` in (1, 2018))
Filename: /shared/httpd/humber/hq/application/vendor/illuminate/database/Connection.php
Line Number: 647
Thanks
PS: I saw there might be a new version coming soon, how soon?
The text was updated successfully, but these errors were encountered:
I am not sure how to make it work with hasOne
Code is
Program::with('type')->find(['id' => 1, 'year' => 2018]);
in the model
I get
Thanks
PS: I saw there might be a new version coming soon, how soon?
The text was updated successfully, but these errors were encountered: