Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
RinkAttendant6 opened this issue Feb 11, 2025 · 0 comments
Open

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

RinkAttendant6 opened this issue Feb 11, 2025 · 0 comments

Comments

@RinkAttendant6
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant