¿Y la estructura que tienes arriba como la has obtenido?
Porque no veo que en la que imprime $aux, todo se encuentre dentro de un mismo array, sino en varios separados...
Código PHP:
Ver original{
{
["id"]=> string(1) "6"
["nombre"]=> string(9) "Recibidas"
["tipo"]=> string(4) "Car1"
["id_owner"]=> string(1) "0"
}
}
{
{
["id"]=> string(1) "5"
["nombre"]=> string(6) "Cartas"
["tipo"]=> string(4) "Car1"
["id_owner"]=> string(1) "0"
}
}
{
{
["id"]=> string(1) "2"
["nombre"]=> string(8) "Facturas"
["tipo"]=> string(4) "Car1"
["id_owner"]=> string(1) "0"
}
}
{
{
["id"]=> string(1) "3"
["nombre"]=> string(15) "Correspondencia"
["tipo"]=> string(4) "Car1"
["id_owner"]=> string(1) "0"
}
{
["id"]=> string(1) "4"
["nombre"]=> string(6) "Ventas"
["tipo"]=> string(4) "Car1"
["id_owner"]=> string(1) "0"
}
{
["id"]=> string(1) "3"
["nombre"]=> string(18) "Correspondenciawww"
["tipo"]=> string(4) "Doc0"
["id_owner"]=> string(1) "0"
}
}