/**
  * @param array $where
  * @return string
  */
 protected function scalarizeWhere($where)
 {
     if (is_array($where)) {
         foreach ($where as $property => $value) {
             $where[$property] = $this->entityMapper->scalarizeValue($value);
         }
     }
     return $where;
 }