Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-590

Doctrine\DBAL\Schema\Column::visit Calls a Method That Doesn't Exist on Doctrine\DBAL\Scema\Visitor\Visitor

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4, 2.3.4
    • Fix Version/s: 2.5
    • Component/s: Schema Managers
    • Labels:
      None
    • Environment:

      Description

      `Column::visit` tries to `Doctrine\DBAL\Schema\Visitor\Visitor::accept`

      https://github.com/doctrine/dbal/blob/2.3/lib/Doctrine/DBAL/Schema/Visitor/Visitor.php#L42
      https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Schema/Column.php#L471

      It doesn't look like `Visitor` actually has an `accept` method.
      https://github.com/doctrine/dbal/blob/2.3/lib/Doctrine/DBAL/Schema/Visitor/Visitor.php
      https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Schema/Visitor/Visitor.php

      The method needed seems to be `Visitor:: acceptColumn`, but `Column` itself doesn't seem to be aware of it's parent table in any way.

        Activity

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Christopher Davis
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: