if ($includeForeignObjects) {
            if (null !== $this->collSCategories) {

                switch ($keyType) {
                    case TableMap::TYPE_CAMELNAME: