Beispiel #1
0
 /**
  * @param Visitor $visitor
  */
 public function visit(Visitor $visitor)
 {
     $visitor->acceptTable($this);
     foreach ($this->getColumns() as $column) {
         $visitor->acceptColumn($this, $column);
     }
     foreach ($this->getIndexes() as $index) {
         $visitor->acceptIndex($this, $index);
     }
     foreach ($this->getForeignKeys() as $constraint) {
         $visitor->acceptForeignKey($this, $constraint);
     }
 }
Beispiel #2
0
 /**
  * @param \Doctrine\DBAL\Schema\Visitor\Visitor $visitor
  *
  * @return void
  */
 public function visit(Visitor $visitor)
 {
     $visitor->acceptSchema($this);
     foreach ($this->_tables as $table) {
         $table->visit($visitor);
     }
     foreach ($this->_sequences as $sequence) {
         $sequence->visit($visitor);
     }
 }
Beispiel #3
0
 /**
  * @param \Doctrine\DBAL\Schema\Visitor\Visitor $visitor
  *
  * @return void
  */
 public function visit(Visitor $visitor)
 {
     $visitor->acceptSchema($this);
     if ($visitor instanceof NamespaceVisitor) {
         foreach ($this->namespaces as $namespace) {
             $visitor->acceptNamespace($namespace);
         }
     }
     foreach ($this->_tables as $table) {
         $table->visit($visitor);
     }
     foreach ($this->_sequences as $sequence) {
         $sequence->visit($visitor);
     }
 }
Beispiel #4
0
 /**
  * @param Visitor $visitor
  */
 public function visit(Visitor $visitor)
 {
     $visitor->acceptSequence($this);
 }
Beispiel #5
0
 /**
  * @param \Doctrine\DBAL\Schema\Visitor\Visitor $visitor
  */
 public function visit(Visitor $visitor)
 {
     $visitor->accept($this);
 }