Вывести всю информацию по айди товара

Как вывести всю инфу по товару?
$images = $modx->getCollection('msProductFile', array('product_id' => $idGood, 'type' => 'image', 'parent' => 0));
foreach ($images as $image) {
	$res[] = $image->toArray();
}

Array
(
    [id] => 13
    [product_id] => 3
    [source] => 2
    [parent] => 0
    [name] => 1111.png
    [description] => 
    [path] => 3/
    [file] => 1111.png
    [type] => image
    [createdon] => 2016-11-09 10:55:52
    [createdby] => 1
    [rank] => 1
    [url] => /assets/images/products/3/1111.png
    [properties] => Array
        (
            [size] => 146893
            [width] => 400
            [height] => 320
            [bits] => 8
            [mime] => image/png
        )

    [hash] => 124c7f8dadff6a738d8554c643fab6abc8ac9089
)

при таком запросе выводится вот такой массив, как вывести остальные данные, название, артикул и т д?
stas
10 ноября 2016, 06:13
modx.pro
877
0

Комментарии: 1

Дмитрий
10 ноября 2016, 10:58
0
Присоединить таблицу msProduct
    Авторизуйтесь или зарегистрируйтесь, чтобы оставлять комментарии.
    1