Е
Size: a a a
Е
М
АС
Е
{set $watermark = ( 'cfg_watermark' | option == '' ) ?: 'fltr[]=wmi|' ~ ('cfg_watermark' | option | phpthumbon : 'w=150&h=150&far=C&ra=1') ~ '|C|50|50|50'}Е
М
P
АС
P
S
SL
SL
public function getListMultiSportObjectsByIds($ids) {
$this->c->select('id,id_sportcompany, name, city, geo_lat, geo_lon');
$this->c->where(['id_sportcompany:IN' => $ids]);
//$this->c->prepare();
//echo $this->c->toSQL();
$objects = $this->modx->getCollection($this->classKey,$this->c);
if (empty($objects)) $objects = array();
$list = array();
/** @var xPDOObject $object */
foreach ($objects as $object) {
$list[] = $object->toArray('',false, true);
}
//return $this->failure($ids);
//return $this->failure($this->c->toSQL());
return $this->collection($list);
}SL
SELECT `id`, `id_sportcompany`, `name`, `city`, `geo_lat`, `geo_lon` FROM `XGLEOfSk0t18_sr_sportobject` AS `SrSportobject` WHERE `SrSportobject`.`id_sportcompany` IN (58)
SL
К
К
К
$this->c->where(['id_sportcompany:IN' => explode(",",$ids)]); вот так попробуйSL
$this->c->where(['id_sportcompany:IN' => explode(",",$ids)]); вот так попробуйОШ
ПК