lundi 2 mai 2016

Eloquent error using with and select together. Segmentation fault

When performing select and with in one query builder there's no server error. I just get the following message: <domain> page isnt working. <domain> didn't send any data.

When I check in /var/log/apache2/error.log there is a log of:

child pid 1948 exit signal Segmentation fault (11), possible coredump in /etc/apache2

I've tried using query scopes as mentioned here eg

$posts = Post::with(['image' => function($query){
  $query->select('id');
}])->select('id')->get();

If I change get() to toSql() it only outputs select id from posts;

I've also tried removing the select and passing columns to get() with no luck.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire