Example #1
0
 /**
  * Creates a new Index instance.
  *
  * @param string $name Name of the index
  */
 public function __construct($name = null)
 {
     parent::__construct();
     $this->columns = [];
     $this->columnsSize = [];
     if (null !== $name) {
         $this->setName($name);
     }
 }
Example #2
0
 /**
  * Creates a new Domain object.
  *
  * If this domain needs a name, it must be specified manually.
  *
  * @param string  $type    Propel type.
  * @param string  $sqlType SQL type.
  * @param integer $size
  * @param integer $scale
  */
 public function __construct($type = null, $sqlType = null, $size = null, $scale = null)
 {
     parent::__construct();
     if (null !== $type) {
         $this->setType($type);
     }
     if (null !== $size) {
         $this->setSize($size);
     }
     if (null !== $scale) {
         $this->setScale($scale);
     }
     $this->setSqlType(null !== $sqlType ? $sqlType : $type);
 }
Example #3
0
 /**
  * Creates a new column and set the name.
  *
  * @param string $name
  */
 public function __construct($name = null)
 {
     parent::__construct();
     if (null !== $name) {
         $this->setName($name);
     }
     $this->isAutoIncrement = false;
     $this->isEnumeratedClasses = false;
     $this->isLazyLoad = false;
     $this->isNestedSetLeftKey = false;
     $this->isNestedSetRightKey = false;
     $this->isNodeKey = false;
     $this->isNotNull = false;
     $this->isPrimaryKey = false;
     $this->isPrimaryString = false;
     $this->isTreeScopeKey = false;
     $this->isUnique = false;
     $this->needsTransactionInPostgres = false;
     $this->valueSet = array();
 }
 /**
  * Constructs a new ForeignKey object.
  *
  * @param string $name
  */
 public function __construct($name = null)
 {
     parent::__construct();
     if (null !== $name) {
         $this->setName($name);
     }
     $this->onUpdate = self::NONE;
     $this->onDelete = self::NONE;
     $this->localColumns = [];
     $this->foreignColumns = [];
     $this->skipSql = false;
 }
Example #5
0
 public function getDefaultValueForArray($value)
 {
     return parent::getDefaultValueForArray($value);
 }