mardi 24 janvier 2017

REPLACE in FIND_IN_SET raw query

I try do something like this:

 <?php $prodottix = \App\Models\Prodotti::whereRaw('FIND_IN_SET(?, REPLACE(categoria_composta, ">", ',') )', [$id])->paginate(30); ?>

basically i need to FIND_IN_SET in a field WHERE , is >... but i'm get array to string error...



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire