/** * 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); } }
/** * 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); }
/** * 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; }
public function getDefaultValueForArray($value) { return parent::getDefaultValueForArray($value); }