Esempio n. 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);
     }
 }
Esempio n. 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);
     }
 }
Esempio n. 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);
     }
 }
Esempio n. 4
0
 /**
  * @param Visitor $visitor
  */
 public function visit(Visitor $visitor)
 {
     $visitor->acceptSequence($this);
 }
Esempio n. 5
0
 /**
  * @param \Doctrine\DBAL\Schema\Visitor\Visitor $visitor
  */
 public function visit(Visitor $visitor)
 {
     $visitor->accept($this);
 }