if ($Informationsystem_Controller_Show->item)
{
$oXmlSameItems = Core::factory('Core_Xml_Entity')->name('same_items');
$Informationsystem_Controller_Show->addEntity($oXmlSameItems);
$oShop = $Informationsystem_Controller_Show->getEntity();
$oCurItem = Core_Entity::factory('Informationsystem_Item', $Informationsystem_Controller_Show->item);
$oShop_Same_Items = $oShop->Informationsystem_Items;
$oShop_Same_Items
->queryBuilder()
->where('Informationsystem_items.id', '!=', intval($oCurItem->id))
->limit(3)
->clearOrderBy()
->orderBy('RAND()');
$aShop_Same_Items = $oShop_Same_Items->findAll();
foreach($aShop_Same_Items as $oShop_Same_Item)
{
$oXmlSameItems->addEntity(
$oShop_Same_Item->clearEntities()
);
}
}
Ругается на строку
->where('Informationsystem_items.id', '!=', intval($oCurItem->id))