Код: Выделить всё
select `id_ifc_espaces`,GROUP_CONCAT(DISTINCT `nom_espace`) as nom_espace ,GROUP_CONCAT(DISTINCT `fonction_espace`) as fonction_espace, GROUP_CONCAT(DISTINCT `id_ouvrage_slab_wall`) as id_ouvrage_slab_wall , GROUP_CONCAT(DISTINCT `type_limit`) as type_limit,GROUP_CONCAT(DISTINCT `type_ouvr`) as type_ouvr from `relespouv` group by`id_ifc_espaces`
Код: Выделить всё
$relations = DB::table('relespouv')
->select('id_ifc_espaces')
->group_by('id_ifc_espaces')
->where('id_mn','=',$idmn)
->get(array(DB::raw('GROUP_CONCAT(DISTINCT nom_espace) as nom_espace,
GROUP_CONCAT(DISTINCT fonction_espace) AS fonction_espace,
GROUP_CONCAT(DISTINCT id_ouvrage_slab_wall) AS id_ouvrage_slab_wall,
GROUP_CONCAT(DISTINCT type_limit) AS type_limit,
GROUP_CONCAT(DISTINCT type_ouvr) AS type_ouvr ')));
Код: Выделить всё
$relespouv[$allelement['Relation']][12]=$relation->nom_espace;
Неопределенное свойство: stdClass::$nom_espace
Кто-нибудь может мне помочь?>
Подробнее здесь: https://stackoverflow.com/questions/294 ... ry-builder
Мобильная версия