Skip to content

How to use with inet[] and cidr[] types? #260

@RinkAttendant6

Description

@RinkAttendant6

I'm trying to use this package to map inet[] and cidr[] types properly but I can't seem to get it working.

I tried adding the following into my Symfony config/doctrine.yaml:

doctrine:
  dbal:
    # ...
    types:
      # ...all the other types
      inet[]: MartinGeorgiev\Doctrine\DBAL\Types\TextArray
      cidr[]: MartinGeorgiev\Doctrine\DBAL\Types\TextArray
    mapping_types:
      # ...all the other types
      inet[]: text[]
      _inet: text[]
      cidr[]: text[]
      _cidr: text[]

It doesn't change how the value is returned. What am I doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions