Category : doctrine-dbal

I am working with symfony 5.1, doctrine-bundle 2.1.2 and doctrine-migrations-bundle 2.2. I am NOT working with ORM and define my own Schemas. To add Enum types, I am using the following code: abstract class EnumType extends Type { protected string $name; public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform) { $values = $this->getValues(); $maxLength = max(array_map(‘strlen’, $values)); ..

Read more