public function isDefaultSqlType(PropelPlatformInterface $platform = null) { if (null === $this->domain || null === $this->domain->getSqlType() || null === $platform) { return true; } $defaultSqlType = $platform->getDomainForType($this->getType())->getSqlType(); if ($defaultSqlType == $this->getDomain()->getSqlType()) { return true; } return false; }