/** * Constructs a table object with a name * * @param string $name table name */ public function __construct($name = null) { parent::__construct(); if (null !== $name) { $this->setCommonName($name); } $this->idMethod = IdMethod::NO_ID_METHOD; $this->allowPkInsert = false; $this->isAbstract = false; $this->isCrossRef = false; $this->readOnly = false; $this->reloadOnInsert = false; $this->reloadOnUpdate = false; $this->skipSql = false; $this->behaviors = array(); $this->columns = array(); $this->columnsByName = array(); $this->columnsByPhpName = array(); $this->columnsByLowercaseName = array(); $this->foreignKeys = array(); $this->foreignTableNames = array(); $this->idMethodParameters = array(); $this->indices = array(); $this->referrers = array(); $this->unices = array(); }
/** * Constructs a new Database object. * * @param string $name */ public function __construct($name = null) { parent::__construct(); if (null !== $name) { $this->setName($name); } $this->heavyIndexing = false; $this->tablePrefix = ''; $this->defaultPhpNamingMethod = NameGenerator::CONV_METHOD_UNDERSCORE; $this->defaultIdMethod = IdMethod::NATIVE; $this->defaultStringFormat = static::DEFAULT_STRING_FORMAT; $this->behaviors = array(); $this->domainMap = array(); $this->tables = array(); $this->tablesByName = array(); $this->tablesByPhpName = array(); $this->tablesByLowercaseName = array(); }
/** * Constructs a new Database object. * * @param string $name The database's name * @param PlatformInterface $platform The database's platform */ public function __construct($name = null, PlatformInterface $platform = null) { parent::__construct(); if (null !== $name) { $this->setName($name); } if (null !== $platform) { $this->setPlatform($platform); } $this->heavyIndexing = false; $this->defaultPhpNamingMethod = NameGeneratorInterface::CONV_METHOD_UNDERSCORE; $this->defaultIdMethod = IdMethod::NATIVE; $this->defaultStringFormat = static::DEFAULT_STRING_FORMAT; $this->defaultAccessorVisibility = static::VISIBILITY_PUBLIC; $this->defaultMutatorVisibility = static::VISIBILITY_PUBLIC; $this->behaviors = []; $this->domainMap = []; $this->tables = []; $this->tablesByName = []; $this->tablesByPhpName = []; $this->tablesByLowercaseName = []; }
/** * Constructs a table object with a name * * @param string $name table name */ public function __construct($name = null) { parent::__construct(); if (null !== $name) { $this->setCommonName($name); } $this->idMethod = IdMethod::NO_ID_METHOD; $this->defaultAccessorVisibility = static::VISIBILITY_PUBLIC; $this->defaultMutatorVisibility = static::VISIBILITY_PUBLIC; $this->allowPkInsert = false; $this->isAbstract = false; $this->isCrossRef = false; $this->readOnly = false; $this->reloadOnInsert = false; $this->reloadOnUpdate = false; $this->skipSql = false; $this->behaviors = []; $this->columns = []; $this->columnsByName = []; $this->columnsByPhpName = []; $this->columnsByLowercaseName = []; $this->foreignKeys = []; $this->foreignKeysByName = []; $this->foreignTableNames = []; $this->idMethodParameters = []; $this->indices = []; $this->referrers = []; $this->unices = []; }