public function copy(Domain $domain) { $this->defaultValue = $domain->getDefaultValue(); $this->description = $domain->getDescription(); $this->name = $domain->getName(); $this->scale = $domain->getScale(); $this->size = $domain->getSize(); $this->sqlType = $domain->getSqlType(); $this->propelType = $domain->getType(); }
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; }