/**
  * @param Schema   $schema
  * @param Property $property
  * @param string $operationType
  * @return Operation
  */
 public static function factory(Schema $schema, Property $property, $operationType)
 {
     $operation = new self();
     $operation->setType($operationType);
     $operation->setSchema($schema);
     $operation->setPath($property->getPath());
     $operation->setValue($property->getValue());
     return $operation;
 }
Example #2
0
 public static function debugClassesForTable($schema, $tableName)
 {
     $builder = new self();
     $builder->setSchema($schema);
     foreach ($builder->getDatabase()->getTables() as $table) {
         if ($table->getName() == $tableName) {
             echo $builder->getClassesForTable($table);
         }
     }
 }