repository_name stringlengths 5 67 | func_path_in_repository stringlengths 4 234 | func_name stringlengths 0 314 | whole_func_string stringlengths 52 3.87M | language stringclasses 6
values | func_code_string stringlengths 52 3.87M | func_code_tokens listlengths 15 672k | func_documentation_string stringlengths 1 47.2k | func_documentation_tokens listlengths 1 3.92k | split_name stringclasses 1
value | func_code_url stringlengths 85 339 |
|---|---|---|---|---|---|---|---|---|---|---|
propelorm/Propel2 | src/Propel/Generator/Builder/Om/ObjectBuilder.php | ObjectBuilder.addRefFKClear | protected function addRefFKClear(&$script, ForeignKey $refFK)
{
$relCol = $this->getRefFKPhpNameAffix($refFK, true);
$collName = $this->getRefFKCollVarName($refFK);
$script .= "
/**
* Clears out the $collName collection
*
* This does not modify the database; however, it w... | php | protected function addRefFKClear(&$script, ForeignKey $refFK)
{
$relCol = $this->getRefFKPhpNameAffix($refFK, true);
$collName = $this->getRefFKCollVarName($refFK);
$script .= "
/**
* Clears out the $collName collection
*
* This does not modify the database; however, it w... | [
"protected",
"function",
"addRefFKClear",
"(",
"&",
"$",
"script",
",",
"ForeignKey",
"$",
"refFK",
")",
"{",
"$",
"relCol",
"=",
"$",
"this",
"->",
"getRefFKPhpNameAffix",
"(",
"$",
"refFK",
",",
"true",
")",
";",
"$",
"collName",
"=",
"$",
"this",
"-... | Adds the method that clears the referrer fkey collection.
@param string &$script The script will be modified in this method.
@param ForeignKey $refFK | [
"Adds",
"the",
"method",
"that",
"clears",
"the",
"referrer",
"fkey",
"collection",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/ObjectBuilder.php#L3973-L3993 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/ObjectBuilder.php | ObjectBuilder.addRefFKInit | protected function addRefFKInit(&$script, ForeignKey $refFK)
{
$relCol = $this->getRefFKPhpNameAffix($refFK, true);
$collName = $this->getRefFKCollVarName($refFK);
$script .= "
/**
* Initializes the $collName collection.
*
* By default this just sets the $collName collect... | php | protected function addRefFKInit(&$script, ForeignKey $refFK)
{
$relCol = $this->getRefFKPhpNameAffix($refFK, true);
$collName = $this->getRefFKCollVarName($refFK);
$script .= "
/**
* Initializes the $collName collection.
*
* By default this just sets the $collName collect... | [
"protected",
"function",
"addRefFKInit",
"(",
"&",
"$",
"script",
",",
"ForeignKey",
"$",
"refFK",
")",
"{",
"$",
"relCol",
"=",
"$",
"this",
"->",
"getRefFKPhpNameAffix",
"(",
"$",
"refFK",
",",
"true",
")",
";",
"$",
"collName",
"=",
"$",
"this",
"->... | Adds the method that initializes the referrer fkey collection.
@param string &$script The script will be modified in this method.
@param ForeignKey $refFK | [
"Adds",
"the",
"method",
"that",
"initializes",
"the",
"referrer",
"fkey",
"collection",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/ObjectBuilder.php#L4000-L4030 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/ObjectBuilder.php | ObjectBuilder.addRefFKAdd | protected function addRefFKAdd(&$script, ForeignKey $refFK)
{
$tblFK = $refFK->getTable();
$className = $this->getClassNameFromTable($refFK->getTable());
if ($tblFK->getChildrenColumn()) {
$className = $this->getClassNameFromTable($refFK->getTable(), true);
}
$... | php | protected function addRefFKAdd(&$script, ForeignKey $refFK)
{
$tblFK = $refFK->getTable();
$className = $this->getClassNameFromTable($refFK->getTable());
if ($tblFK->getChildrenColumn()) {
$className = $this->getClassNameFromTable($refFK->getTable(), true);
}
$... | [
"protected",
"function",
"addRefFKAdd",
"(",
"&",
"$",
"script",
",",
"ForeignKey",
"$",
"refFK",
")",
"{",
"$",
"tblFK",
"=",
"$",
"refFK",
"->",
"getTable",
"(",
")",
";",
"$",
"className",
"=",
"$",
"this",
"->",
"getClassNameFromTable",
"(",
"$",
"... | Adds the method that adds an object into the referrer fkey collection.
@param string &$script The script will be modified in this method.
@param ForeignKey $refFK | [
"Adds",
"the",
"method",
"that",
"adds",
"an",
"object",
"into",
"the",
"referrer",
"fkey",
"collection",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/ObjectBuilder.php#L4037-L4077 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/ObjectBuilder.php | ObjectBuilder.addRefFKCount | protected function addRefFKCount(&$script, ForeignKey $refFK)
{
$fkQueryClassName = $this->getClassNameFromBuilder($this->getNewStubQueryBuilder($refFK->getTable()));
$relCol = $this->getRefFKPhpNameAffix($refFK, $plural = true);
$collName = $this->getRefFKCollVarName($refFK);
$join... | php | protected function addRefFKCount(&$script, ForeignKey $refFK)
{
$fkQueryClassName = $this->getClassNameFromBuilder($this->getNewStubQueryBuilder($refFK->getTable()));
$relCol = $this->getRefFKPhpNameAffix($refFK, $plural = true);
$collName = $this->getRefFKCollVarName($refFK);
$join... | [
"protected",
"function",
"addRefFKCount",
"(",
"&",
"$",
"script",
",",
"ForeignKey",
"$",
"refFK",
")",
"{",
"$",
"fkQueryClassName",
"=",
"$",
"this",
"->",
"getClassNameFromBuilder",
"(",
"$",
"this",
"->",
"getNewStubQueryBuilder",
"(",
"$",
"refFK",
"->",... | Adds the method that returns the size of the referrer fkey collection.
@param string &$script The script will be modified in this method.
@param ForeignKey $refFK | [
"Adds",
"the",
"method",
"that",
"returns",
"the",
"size",
"of",
"the",
"referrer",
"fkey",
"collection",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/ObjectBuilder.php#L4084-L4128 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/ObjectBuilder.php | ObjectBuilder.addRefFKGet | protected function addRefFKGet(&$script, ForeignKey $refFK)
{
$fkQueryClassName = $this->getClassNameFromBuilder($this->getNewStubQueryBuilder($refFK->getTable()));
$relCol = $this->getRefFKPhpNameAffix($refFK, $plural = true);
$collName = $this->getRefFKCollVarName($refFK);
$classN... | php | protected function addRefFKGet(&$script, ForeignKey $refFK)
{
$fkQueryClassName = $this->getClassNameFromBuilder($this->getNewStubQueryBuilder($refFK->getTable()));
$relCol = $this->getRefFKPhpNameAffix($refFK, $plural = true);
$collName = $this->getRefFKCollVarName($refFK);
$classN... | [
"protected",
"function",
"addRefFKGet",
"(",
"&",
"$",
"script",
",",
"ForeignKey",
"$",
"refFK",
")",
"{",
"$",
"fkQueryClassName",
"=",
"$",
"this",
"->",
"getClassNameFromBuilder",
"(",
"$",
"this",
"->",
"getNewStubQueryBuilder",
"(",
"$",
"refFK",
"->",
... | Adds the method that returns the referrer fkey collection.
@param string &$script The script will be modified in this method.
@param ForeignKey $refFK | [
"Adds",
"the",
"method",
"that",
"returns",
"the",
"referrer",
"fkey",
"collection",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/ObjectBuilder.php#L4135-L4202 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/ObjectBuilder.php | ObjectBuilder.addRefFKSet | protected function addRefFKSet(&$script, ForeignKey $refFK)
{
$relatedName = $this->getRefFKPhpNameAffix($refFK, true);
$relatedObjectClassName = $this->getRefFKPhpNameAffix($refFK, false);
$className = $this->getClassNameFromTable($refFK->getTable());
$inputCollection = lcfirst($r... | php | protected function addRefFKSet(&$script, ForeignKey $refFK)
{
$relatedName = $this->getRefFKPhpNameAffix($refFK, true);
$relatedObjectClassName = $this->getRefFKPhpNameAffix($refFK, false);
$className = $this->getClassNameFromTable($refFK->getTable());
$inputCollection = lcfirst($r... | [
"protected",
"function",
"addRefFKSet",
"(",
"&",
"$",
"script",
",",
"ForeignKey",
"$",
"refFK",
")",
"{",
"$",
"relatedName",
"=",
"$",
"this",
"->",
"getRefFKPhpNameAffix",
"(",
"$",
"refFK",
",",
"true",
")",
";",
"$",
"relatedObjectClassName",
"=",
"$... | addRefererGet() | [
"addRefererGet",
"()"
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/ObjectBuilder.php#L4204-L4264 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/ObjectBuilder.php | ObjectBuilder.addPKRefFKGet | protected function addPKRefFKGet(&$script, ForeignKey $refFK)
{
$className = $this->getClassNameFromTable($refFK->getTable());
$queryClassName = $this->getClassNameFromBuilder($this->getNewStubQueryBuilder($refFK->getTable()));
$varName = $this->getPKRefFKVarName($refFK);
$script ... | php | protected function addPKRefFKGet(&$script, ForeignKey $refFK)
{
$className = $this->getClassNameFromTable($refFK->getTable());
$queryClassName = $this->getClassNameFromBuilder($this->getNewStubQueryBuilder($refFK->getTable()));
$varName = $this->getPKRefFKVarName($refFK);
$script ... | [
"protected",
"function",
"addPKRefFKGet",
"(",
"&",
"$",
"script",
",",
"ForeignKey",
"$",
"refFK",
")",
"{",
"$",
"className",
"=",
"$",
"this",
"->",
"getClassNameFromTable",
"(",
"$",
"refFK",
"->",
"getTable",
"(",
")",
")",
";",
"$",
"queryClassName",... | Adds the method that gets a one-to-one related referrer fkey.
This is for one-to-one relationship special case.
@param string &$script The script will be modified in this method.
@param ForeignKey $refFK | [
"Adds",
"the",
"method",
"that",
"gets",
"a",
"one",
"-",
"to",
"-",
"one",
"related",
"referrer",
"fkey",
".",
"This",
"is",
"for",
"one",
"-",
"to",
"-",
"one",
"relationship",
"special",
"case",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/ObjectBuilder.php#L4357-L4384 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/ObjectBuilder.php | ObjectBuilder.addPKRefFKSet | protected function addPKRefFKSet(&$script, ForeignKey $refFK)
{
$className = $this->getClassNameFromTable($refFK->getTable());
$varName = $this->getPKRefFKVarName($refFK);
$script .= "
/**
* Sets a single $className object as related to this object by a one-to-one relationship.
... | php | protected function addPKRefFKSet(&$script, ForeignKey $refFK)
{
$className = $this->getClassNameFromTable($refFK->getTable());
$varName = $this->getPKRefFKVarName($refFK);
$script .= "
/**
* Sets a single $className object as related to this object by a one-to-one relationship.
... | [
"protected",
"function",
"addPKRefFKSet",
"(",
"&",
"$",
"script",
",",
"ForeignKey",
"$",
"refFK",
")",
"{",
"$",
"className",
"=",
"$",
"this",
"->",
"getClassNameFromTable",
"(",
"$",
"refFK",
"->",
"getTable",
"(",
")",
")",
";",
"$",
"varName",
"=",... | Adds the method that sets a one-to-one related referrer fkey.
This is for one-to-one relationships special case.
@param string &$script The script will be modified in this method.
@param ForeignKey $refFK The referencing foreign key. | [
"Adds",
"the",
"method",
"that",
"sets",
"a",
"one",
"-",
"to",
"-",
"one",
"related",
"referrer",
"fkey",
".",
"This",
"is",
"for",
"one",
"-",
"to",
"-",
"one",
"relationships",
"special",
"case",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/ObjectBuilder.php#L4392-L4418 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/ObjectBuilder.php | ObjectBuilder.addCrossFKClear | protected function addCrossFKClear(&$script, CrossForeignKeys $crossFKs)
{
$relCol = $this->getCrossFKsPhpNameAffix($crossFKs);
$collName = $this->getCrossFKsVarName($crossFKs);
$script .= "
/**
* Clears out the {$collName} collection
*
* This does not modify the databa... | php | protected function addCrossFKClear(&$script, CrossForeignKeys $crossFKs)
{
$relCol = $this->getCrossFKsPhpNameAffix($crossFKs);
$collName = $this->getCrossFKsVarName($crossFKs);
$script .= "
/**
* Clears out the {$collName} collection
*
* This does not modify the databa... | [
"protected",
"function",
"addCrossFKClear",
"(",
"&",
"$",
"script",
",",
"CrossForeignKeys",
"$",
"crossFKs",
")",
"{",
"$",
"relCol",
"=",
"$",
"this",
"->",
"getCrossFKsPhpNameAffix",
"(",
"$",
"crossFKs",
")",
";",
"$",
"collName",
"=",
"$",
"this",
"-... | Adds the method that clears the referrer fkey collection.
@param string &$script The script will be modified in this method.
@param CrossForeignKeys $crossFKs | [
"Adds",
"the",
"method",
"that",
"clears",
"the",
"referrer",
"fkey",
"collection",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/ObjectBuilder.php#L4738-L4758 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/ObjectBuilder.php | ObjectBuilder.addCrossFKInit | protected function addCrossFKInit(&$script, CrossForeignKeys $crossFKs)
{
$inits = [];
if (1 < count($crossFKs->getCrossForeignKeys()) || $crossFKs->getUnclassifiedPrimaryKeys()) {
$inits[] = [
'relCol' => $this->getCrossFKsPhpNameAffix($crossFKs, true),
... | php | protected function addCrossFKInit(&$script, CrossForeignKeys $crossFKs)
{
$inits = [];
if (1 < count($crossFKs->getCrossForeignKeys()) || $crossFKs->getUnclassifiedPrimaryKeys()) {
$inits[] = [
'relCol' => $this->getCrossFKsPhpNameAffix($crossFKs, true),
... | [
"protected",
"function",
"addCrossFKInit",
"(",
"&",
"$",
"script",
",",
"CrossForeignKeys",
"$",
"crossFKs",
")",
"{",
"$",
"inits",
"=",
"[",
"]",
";",
"if",
"(",
"1",
"<",
"count",
"(",
"$",
"crossFKs",
"->",
"getCrossForeignKeys",
"(",
")",
")",
"|... | Adds the method that initializes the referrer fkey collection.
@param string &$script The script will be modified in this method.
@param CrossForeignKeys $crossFKs | [
"Adds",
"the",
"method",
"that",
"initializes",
"the",
"referrer",
"fkey",
"collection",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/ObjectBuilder.php#L4787-L4860 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/ObjectBuilder.php | ObjectBuilder.addCrossFKIsLoaded | protected function addCrossFKIsLoaded(&$script, CrossForeignKeys $crossFKs)
{
$inits = [];
if (1 < count($crossFKs->getCrossForeignKeys()) || $crossFKs->getUnclassifiedPrimaryKeys()) {
$inits[] = [
'relCol' => $this->getCrossFKsPhpNameAffix($crossFKs, true),
... | php | protected function addCrossFKIsLoaded(&$script, CrossForeignKeys $crossFKs)
{
$inits = [];
if (1 < count($crossFKs->getCrossForeignKeys()) || $crossFKs->getUnclassifiedPrimaryKeys()) {
$inits[] = [
'relCol' => $this->getCrossFKsPhpNameAffix($crossFKs, true),
... | [
"protected",
"function",
"addCrossFKIsLoaded",
"(",
"&",
"$",
"script",
",",
"CrossForeignKeys",
"$",
"crossFKs",
")",
"{",
"$",
"inits",
"=",
"[",
"]",
";",
"if",
"(",
"1",
"<",
"count",
"(",
"$",
"crossFKs",
"->",
"getCrossForeignKeys",
"(",
")",
")",
... | Adds the method that check if the referrer fkey collection is initialized.
@param string &$script The script will be modified in this method.
@param CrossForeignKeys $crossFKs | [
"Adds",
"the",
"method",
"that",
"check",
"if",
"the",
"referrer",
"fkey",
"collection",
"is",
"initialized",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/ObjectBuilder.php#L4867-L4905 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/ObjectBuilder.php | ObjectBuilder.addCrossFKAdd | protected function addCrossFKAdd(&$script, CrossForeignKeys $crossFKs)
{
$refFK = $crossFKs->getIncomingForeignKey();
foreach ($crossFKs->getCrossForeignKeys() as $crossFK) {
$relSingleNamePlural = $this->getFKPhpNameAffix($crossFK, $plural = true);
$relSingleName = $this->g... | php | protected function addCrossFKAdd(&$script, CrossForeignKeys $crossFKs)
{
$refFK = $crossFKs->getIncomingForeignKey();
foreach ($crossFKs->getCrossForeignKeys() as $crossFK) {
$relSingleNamePlural = $this->getFKPhpNameAffix($crossFK, $plural = true);
$relSingleName = $this->g... | [
"protected",
"function",
"addCrossFKAdd",
"(",
"&",
"$",
"script",
",",
"CrossForeignKeys",
"$",
"crossFKs",
")",
"{",
"$",
"refFK",
"=",
"$",
"crossFKs",
"->",
"getIncomingForeignKey",
"(",
")",
";",
"foreach",
"(",
"$",
"crossFKs",
"->",
"getCrossForeignKeys... | Adds the method that adds an object into the referrer fkey collection.
@param string &$script The script will be modified in this method.
@param CrossForeignKeys $crossFKs | [
"Adds",
"the",
"method",
"that",
"adds",
"an",
"object",
"into",
"the",
"referrer",
"fkey",
"collection",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/ObjectBuilder.php#L5363-L5408 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/ObjectBuilder.php | ObjectBuilder.getCrossFKGetterSignature | protected function getCrossFKGetterSignature(CrossForeignKeys $crossFKs, $excludeSignatureItem)
{
list (, $getSignature) = $this->getCrossFKAddMethodInformation($crossFKs);
$getSignature = explode(', ', $getSignature);
if (false !== ($pos = array_search($excludeSignatureItem, $getSignature)... | php | protected function getCrossFKGetterSignature(CrossForeignKeys $crossFKs, $excludeSignatureItem)
{
list (, $getSignature) = $this->getCrossFKAddMethodInformation($crossFKs);
$getSignature = explode(', ', $getSignature);
if (false !== ($pos = array_search($excludeSignatureItem, $getSignature)... | [
"protected",
"function",
"getCrossFKGetterSignature",
"(",
"CrossForeignKeys",
"$",
"crossFKs",
",",
"$",
"excludeSignatureItem",
")",
"{",
"list",
"(",
",",
"$",
"getSignature",
")",
"=",
"$",
"this",
"->",
"getCrossFKAddMethodInformation",
"(",
"$",
"crossFKs",
... | Returns a function signature comma separated.
@param CrossForeignKeys $crossFKs
@param string $excludeSignatureItem Which variable to exclude.
@return string | [
"Returns",
"a",
"function",
"signature",
"comma",
"separated",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/ObjectBuilder.php#L5417-L5427 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/ObjectBuilder.php | ObjectBuilder.addCrossFKRemove | protected function addCrossFKRemove(&$script, CrossForeignKeys $crossFKs)
{
$relCol = $this->getCrossFKsPhpNameAffix($crossFKs, $plural = true);
if (1 < count($crossFKs->getCrossForeignKeys()) || $crossFKs->getUnclassifiedPrimaryKeys()) {
$collName = 'combination' . ucfirst($this->getC... | php | protected function addCrossFKRemove(&$script, CrossForeignKeys $crossFKs)
{
$relCol = $this->getCrossFKsPhpNameAffix($crossFKs, $plural = true);
if (1 < count($crossFKs->getCrossForeignKeys()) || $crossFKs->getUnclassifiedPrimaryKeys()) {
$collName = 'combination' . ucfirst($this->getC... | [
"protected",
"function",
"addCrossFKRemove",
"(",
"&",
"$",
"script",
",",
"CrossForeignKeys",
"$",
"crossFKs",
")",
"{",
"$",
"relCol",
"=",
"$",
"this",
"->",
"getCrossFKsPhpNameAffix",
"(",
"$",
"crossFKs",
",",
"$",
"plural",
"=",
"true",
")",
";",
"if... | Adds the method that remove an object from the referrer fkey collection.
@param string $script The script will be modified in this method.
@param CrossForeignKeys $crossFKs | [
"Adds",
"the",
"method",
"that",
"remove",
"an",
"object",
"from",
"the",
"referrer",
"fkey",
"collection",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/ObjectBuilder.php#L5557-L5639 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/ObjectBuilder.php | ObjectBuilder.addDoSave | protected function addDoSave(&$script)
{
$table = $this->getTable();
$reloadOnUpdate = $table->isReloadOnUpdate();
$reloadOnInsert = $table->isReloadOnInsert();
$script .= "
/**
* Performs the work of inserting or updating the row in the database.
*
* If the obje... | php | protected function addDoSave(&$script)
{
$table = $this->getTable();
$reloadOnUpdate = $table->isReloadOnUpdate();
$reloadOnInsert = $table->isReloadOnInsert();
$script .= "
/**
* Performs the work of inserting or updating the row in the database.
*
* If the obje... | [
"protected",
"function",
"addDoSave",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"$",
"reloadOnUpdate",
"=",
"$",
"table",
"->",
"isReloadOnUpdate",
"(",
")",
";",
"$",
"reloadOnInsert",
"=",
"$"... | Adds the workhourse doSave() method.
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"workhourse",
"doSave",
"()",
"method",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/ObjectBuilder.php#L5645-L5794 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/ObjectBuilder.php | ObjectBuilder.addDoInsert | protected function addDoInsert()
{
$table = $this->getTable();
$script = "
/**
* Insert the row in the database.
*
* @param ConnectionInterface \$con
*
* @throws PropelException
* @see doSave()
*/
protected function doInsert(ConnectionInterface \$con)
... | php | protected function addDoInsert()
{
$table = $this->getTable();
$script = "
/**
* Insert the row in the database.
*
* @param ConnectionInterface \$con
*
* @throws PropelException
* @see doSave()
*/
protected function doInsert(ConnectionInterface \$con)
... | [
"protected",
"function",
"addDoInsert",
"(",
")",
"{",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"$",
"script",
"=",
"\"\n /**\n * Insert the row in the database.\n *\n * @param ConnectionInterface \\$con\n *\n * @throws Propel... | get the doInsert() method code
@return string the doInsert() method code | [
"get",
"the",
"doInsert",
"()",
"method",
"code"
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/ObjectBuilder.php#L5801-L5836 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/ObjectBuilder.php | ObjectBuilder.addSave | protected function addSave(&$script)
{
$this->addSaveComment($script);
$this->addSaveOpen($script);
$this->addSaveBody($script);
$this->addSaveClose($script);
} | php | protected function addSave(&$script)
{
$this->addSaveComment($script);
$this->addSaveOpen($script);
$this->addSaveBody($script);
$this->addSaveClose($script);
} | [
"protected",
"function",
"addSave",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"this",
"->",
"addSaveComment",
"(",
"$",
"script",
")",
";",
"$",
"this",
"->",
"addSaveOpen",
"(",
"$",
"script",
")",
";",
"$",
"this",
"->",
"addSaveBody",
"(",
"$",
"scr... | Adds the save() method.
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"save",
"()",
"method",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/ObjectBuilder.php#L6077-L6083 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/ObjectBuilder.php | ObjectBuilder.addSaveComment | protected function addSaveComment(&$script)
{
$table = $this->getTable();
$reloadOnUpdate = $table->isReloadOnUpdate();
$reloadOnInsert = $table->isReloadOnInsert();
$script .= "
/**
* Persists this object to the database.
*
* If the object is new, it inserts it; ... | php | protected function addSaveComment(&$script)
{
$table = $this->getTable();
$reloadOnUpdate = $table->isReloadOnUpdate();
$reloadOnInsert = $table->isReloadOnInsert();
$script .= "
/**
* Persists this object to the database.
*
* If the object is new, it inserts it; ... | [
"protected",
"function",
"addSaveComment",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"$",
"reloadOnUpdate",
"=",
"$",
"table",
"->",
"isReloadOnUpdate",
"(",
")",
";",
"$",
"reloadOnInsert",
"=",
... | Adds the comment for the save method
@param string &$script The script will be modified in this method.
@see addSave() | [
"Adds",
"the",
"comment",
"for",
"the",
"save",
"method"
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/ObjectBuilder.php#L6090-L6130 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/ObjectBuilder.php | ObjectBuilder.addSaveOpen | protected function addSaveOpen(&$script)
{
$table = $this->getTable();
$reloadOnUpdate = $table->isReloadOnUpdate();
$reloadOnInsert = $table->isReloadOnInsert();
$script .= "
public function save(ConnectionInterface \$con = null".($reloadOnUpdate || $reloadOnInsert ? ", \$skipRe... | php | protected function addSaveOpen(&$script)
{
$table = $this->getTable();
$reloadOnUpdate = $table->isReloadOnUpdate();
$reloadOnInsert = $table->isReloadOnInsert();
$script .= "
public function save(ConnectionInterface \$con = null".($reloadOnUpdate || $reloadOnInsert ? ", \$skipRe... | [
"protected",
"function",
"addSaveOpen",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"$",
"reloadOnUpdate",
"=",
"$",
"table",
"->",
"isReloadOnUpdate",
"(",
")",
";",
"$",
"reloadOnInsert",
"=",
"... | Adds the function declaration for the save method
@param string &$script The script will be modified in this method.
@see addSave() | [
"Adds",
"the",
"function",
"declaration",
"for",
"the",
"save",
"method"
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/ObjectBuilder.php#L6137-L6145 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/ObjectBuilder.php | ObjectBuilder.addSaveBody | protected function addSaveBody(&$script)
{
$table = $this->getTable();
$reloadOnUpdate = $table->isReloadOnUpdate();
$reloadOnInsert = $table->isReloadOnInsert();
$script .= "
if (\$this->isDeleted()) {
throw new PropelException(\"You cannot save an object that h... | php | protected function addSaveBody(&$script)
{
$table = $this->getTable();
$reloadOnUpdate = $table->isReloadOnUpdate();
$reloadOnInsert = $table->isReloadOnInsert();
$script .= "
if (\$this->isDeleted()) {
throw new PropelException(\"You cannot save an object that h... | [
"protected",
"function",
"addSaveBody",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"$",
"reloadOnUpdate",
"=",
"$",
"table",
"->",
"isReloadOnUpdate",
"(",
")",
";",
"$",
"reloadOnInsert",
"=",
"... | Adds the function body for the save method
@param string &$script The script will be modified in this method.
@see addSave() | [
"Adds",
"the",
"function",
"body",
"for",
"the",
"save",
"method"
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/ObjectBuilder.php#L6152-L6253 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/ObjectBuilder.php | ObjectBuilder.addCopy | protected function addCopy(&$script)
{
$this->addCopyInto($script);
$script .= "
/**
* Makes a copy of this object that will be inserted as a new row in table when saved.
* It creates a new object filling in the simple attributes, but skipping any primary
* keys that are defined ... | php | protected function addCopy(&$script)
{
$this->addCopyInto($script);
$script .= "
/**
* Makes a copy of this object that will be inserted as a new row in table when saved.
* It creates a new object filling in the simple attributes, but skipping any primary
* keys that are defined ... | [
"protected",
"function",
"addCopy",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"this",
"->",
"addCopyInto",
"(",
"$",
"script",
")",
";",
"$",
"script",
".=",
"\"\n /**\n * Makes a copy of this object that will be inserted as a new row in table when saved.\n * It cr... | Adds the copy() method, which (in complex OM) includes the $deepCopy param for making copies of related objects.
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"copy",
"()",
"method",
"which",
"(",
"in",
"complex",
"OM",
")",
"includes",
"the",
"$deepCopy",
"param",
"for",
"making",
"copies",
"of",
"related",
"objects",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/ObjectBuilder.php#L6324-L6351 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/ObjectBuilder.php | ObjectBuilder.addCopyInto | protected function addCopyInto(&$script)
{
$table = $this->getTable();
$script .= "
/**
* Sets contents of passed object to values from current object.
*
* If desired, this method can also make copies of all associated (fkey referrers)
* objects.
*
* @param ob... | php | protected function addCopyInto(&$script)
{
$table = $this->getTable();
$script .= "
/**
* Sets contents of passed object to values from current object.
*
* If desired, this method can also make copies of all associated (fkey referrers)
* objects.
*
* @param ob... | [
"protected",
"function",
"addCopyInto",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"$",
"script",
".=",
"\"\n /**\n * Sets contents of passed object to values from current object.\n *\n * If desired, ... | Adds the copyInto() method, which takes an object and sets contents to match current object.
In complex OM this method includes the $deepCopy param for making copies of related objects.
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"copyInto",
"()",
"method",
"which",
"takes",
"an",
"object",
"and",
"sets",
"contents",
"to",
"match",
"current",
"object",
".",
"In",
"complex",
"OM",
"this",
"method",
"includes",
"the",
"$deepCopy",
"param",
"for",
"making",
"copies",
"of"... | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/ObjectBuilder.php#L6358-L6450 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/ObjectBuilder.php | ObjectBuilder.addClear | protected function addClear(&$script)
{
$table = $this->getTable();
$script .= "
/**
* Clears the current object, sets all attributes to their default values and removes
* outgoing references as well as back-references (from other objects to this one. Results probably in a database
... | php | protected function addClear(&$script)
{
$table = $this->getTable();
$script .= "
/**
* Clears the current object, sets all attributes to their default values and removes
* outgoing references as well as back-references (from other objects to this one. Results probably in a database
... | [
"protected",
"function",
"addClear",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"$",
"script",
".=",
"\"\n /**\n * Clears the current object, sets all attributes to their default values and removes\n * ou... | Adds clear method
@param string &$script The script will be modified in this method. | [
"Adds",
"clear",
"method"
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/ObjectBuilder.php#L6456-L6515 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/ObjectBuilder.php | ObjectBuilder.addClearAllReferences | protected function addClearAllReferences(&$script)
{
$table = $this->getTable();
$script .= "
/**
* Resets all references and back-references to other model objects or collections of model objects.
*
* This method is used to reset all php object references (not the actual referenc... | php | protected function addClearAllReferences(&$script)
{
$table = $this->getTable();
$script .= "
/**
* Resets all references and back-references to other model objects or collections of model objects.
*
* This method is used to reset all php object references (not the actual referenc... | [
"protected",
"function",
"addClearAllReferences",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"$",
"script",
".=",
"\"\n /**\n * Resets all references and back-references to other model objects or collections ... | Adds clearAllReferences() method which resets all the collections of referencing
fk objects.
@param string &$script The script will be modified in this method. | [
"Adds",
"clearAllReferences",
"()",
"method",
"which",
"resets",
"all",
"the",
"collections",
"of",
"referencing",
"fk",
"objects",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/ObjectBuilder.php#L6523-L6591 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/ObjectBuilder.php | ObjectBuilder.addPrimaryString | protected function addPrimaryString(&$script)
{
foreach ($this->getTable()->getColumns() as $column) {
if ($column->isPrimaryString()) {
$script .= "
/**
* Return the string representation of this object
*
* @return string The value of the '{$column->getName()}... | php | protected function addPrimaryString(&$script)
{
foreach ($this->getTable()->getColumns() as $column) {
if ($column->isPrimaryString()) {
$script .= "
/**
* Return the string representation of this object
*
* @return string The value of the '{$column->getName()}... | [
"protected",
"function",
"addPrimaryString",
"(",
"&",
"$",
"script",
")",
"{",
"foreach",
"(",
"$",
"this",
"->",
"getTable",
"(",
")",
"->",
"getColumns",
"(",
")",
"as",
"$",
"column",
")",
"{",
"if",
"(",
"$",
"column",
"->",
"isPrimaryString",
"("... | Adds a magic __toString() method if a string column was defined as primary string
@param string &$script The script will be modified in this method. | [
"Adds",
"a",
"magic",
"__toString",
"()",
"method",
"if",
"a",
"string",
"column",
"was",
"defined",
"as",
"primary",
"string"
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/ObjectBuilder.php#L6597-L6628 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/ObjectBuilder.php | ObjectBuilder.addMagicCall | protected function addMagicCall(&$script)
{
$behaviorCallScript = '';
$this->applyBehaviorModifier('objectCall', $behaviorCallScript, " ");
$script .= $this->renderTemplate('baseObjectMethodMagicCall', [
'behaviorCallScript' => $behaviorCallScript
]);
} | php | protected function addMagicCall(&$script)
{
$behaviorCallScript = '';
$this->applyBehaviorModifier('objectCall', $behaviorCallScript, " ");
$script .= $this->renderTemplate('baseObjectMethodMagicCall', [
'behaviorCallScript' => $behaviorCallScript
]);
} | [
"protected",
"function",
"addMagicCall",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"behaviorCallScript",
"=",
"''",
";",
"$",
"this",
"->",
"applyBehaviorModifier",
"(",
"'objectCall'",
",",
"$",
"behaviorCallScript",
",",
"\" \"",
")",
";",
"$",
"script",
... | Adds a magic __call() method.
@param string &$script | [
"Adds",
"a",
"magic",
"__call",
"()",
"method",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/ObjectBuilder.php#L6635-L6643 |
propelorm/Propel2 | src/Propel/Runtime/ActiveQuery/Criterion/LikeCriterion.php | LikeCriterion.appendPsForUniqueClauseTo | protected function appendPsForUniqueClauseTo(&$sb, array &$params)
{
$field = (null === $this->table) ? $this->column : $this->table . '.' . $this->column;
$db = $this->getAdapter();
// If selection is case insensitive use ILIKE for PostgreSQL or SQL
// UPPER() function on column nam... | php | protected function appendPsForUniqueClauseTo(&$sb, array &$params)
{
$field = (null === $this->table) ? $this->column : $this->table . '.' . $this->column;
$db = $this->getAdapter();
// If selection is case insensitive use ILIKE for PostgreSQL or SQL
// UPPER() function on column nam... | [
"protected",
"function",
"appendPsForUniqueClauseTo",
"(",
"&",
"$",
"sb",
",",
"array",
"&",
"$",
"params",
")",
"{",
"$",
"field",
"=",
"(",
"null",
"===",
"$",
"this",
"->",
"table",
")",
"?",
"$",
"this",
"->",
"column",
":",
"$",
"this",
"->",
... | Appends a Prepared Statement representation of the Criterion onto the buffer
@param string &$sb The string that will receive the Prepared Statement
@param array $params A list to which Prepared Statement parameters will be appended | [
"Appends",
"a",
"Prepared",
"Statement",
"representation",
"of",
"the",
"Criterion",
"onto",
"the",
"buffer"
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Runtime/ActiveQuery/Criterion/LikeCriterion.php#L67-L96 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/TableMapBuilder.php | TableMapBuilder.addClassOpen | protected function addClassOpen(&$script)
{
$table = $this->getTable();
$script .= "
/**
* This class defines the structure of the '".$table->getName()."' table.
*
*";
if ($this->getBuildProperty('generator.objectModel.addTimeStamp')) {
$now = strftime('%c');
$scr... | php | protected function addClassOpen(&$script)
{
$table = $this->getTable();
$script .= "
/**
* This class defines the structure of the '".$table->getName()."' table.
*
*";
if ($this->getBuildProperty('generator.objectModel.addTimeStamp')) {
$now = strftime('%c');
$scr... | [
"protected",
"function",
"addClassOpen",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"$",
"script",
".=",
"\"\n\n/**\n * This class defines the structure of the '\"",
".",
"$",
"table",
"->",
"getName",
"... | Adds class phpdoc comment and opening of class.
@param string &$script The script will be modified in this method. | [
"Adds",
"class",
"phpdoc",
"comment",
"and",
"opening",
"of",
"class",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/TableMapBuilder.php#L66-L97 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/TableMapBuilder.php | TableMapBuilder.addClassBody | protected function addClassBody(&$script)
{
$table = $this->getTable();
$this->declareClasses(
'\Propel\Runtime\ActiveQuery\InstancePoolTrait',
'\Propel\Runtime\Map\TableMap',
'\Propel\Runtime\Map\TableMapTrait',
'\Propel\Runtime\Map\RelationMap',
... | php | protected function addClassBody(&$script)
{
$table = $this->getTable();
$this->declareClasses(
'\Propel\Runtime\ActiveQuery\InstancePoolTrait',
'\Propel\Runtime\Map\TableMap',
'\Propel\Runtime\Map\TableMapTrait',
'\Propel\Runtime\Map\RelationMap',
... | [
"protected",
"function",
"addClassBody",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"$",
"this",
"->",
"declareClasses",
"(",
"'\\Propel\\Runtime\\ActiveQuery\\InstancePoolTrait'",
",",
"'\\Propel\\Runtime\\... | Specifies the methods that are added as part of the map builder class.
This can be overridden by subclasses that wish to add more methods.
@see ObjectBuilder::addClassBody() | [
"Specifies",
"the",
"methods",
"that",
"are",
"added",
"as",
"part",
"of",
"the",
"map",
"builder",
"class",
".",
"This",
"can",
"be",
"overridden",
"by",
"subclasses",
"that",
"wish",
"to",
"add",
"more",
"methods",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/TableMapBuilder.php#L104-L167 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/TableMapBuilder.php | TableMapBuilder.addConstants | protected function addConstants()
{
return $this->renderTemplate('tableMapConstants', [
'className' => $this->getClasspath(),
'dbName' => $this->getDatabase()->getName(),
'tableName' => $this->getTable()->getName(),
'tablePhpName' ... | php | protected function addConstants()
{
return $this->renderTemplate('tableMapConstants', [
'className' => $this->getClasspath(),
'dbName' => $this->getDatabase()->getName(),
'tableName' => $this->getTable()->getName(),
'tablePhpName' ... | [
"protected",
"function",
"addConstants",
"(",
")",
"{",
"return",
"$",
"this",
"->",
"renderTemplate",
"(",
"'tableMapConstants'",
",",
"[",
"'className'",
"=>",
"$",
"this",
"->",
"getClasspath",
"(",
")",
",",
"'dbName'",
"=>",
"$",
"this",
"->",
"getDatab... | Adds any constants needed for this TableMap class.
@return string | [
"Adds",
"any",
"constants",
"needed",
"for",
"this",
"TableMap",
"class",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/TableMapBuilder.php#L183-L197 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/TableMapBuilder.php | TableMapBuilder.addColumnNameConstants | protected function addColumnNameConstants(&$script)
{
foreach ($this->getTable()->getColumns() as $col) {
$script .= "
/**
* the column name for the " . $col->getName() ." field
*/
const ".$col->getConstantName() ." = '" . $this->getTable()->getName() . ".".$col->getName()."';
... | php | protected function addColumnNameConstants(&$script)
{
foreach ($this->getTable()->getColumns() as $col) {
$script .= "
/**
* the column name for the " . $col->getName() ." field
*/
const ".$col->getConstantName() ." = '" . $this->getTable()->getName() . ".".$col->getName()."';
... | [
"protected",
"function",
"addColumnNameConstants",
"(",
"&",
"$",
"script",
")",
"{",
"foreach",
"(",
"$",
"this",
"->",
"getTable",
"(",
")",
"->",
"getColumns",
"(",
")",
"as",
"$",
"col",
")",
"{",
"$",
"script",
".=",
"\"\n /**\n * the column name... | Adds the COLUMN_NAME constant to the class definition.
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"COLUMN_NAME",
"constant",
"to",
"the",
"class",
"definition",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/TableMapBuilder.php#L203-L213 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/TableMapBuilder.php | TableMapBuilder.addValueSetColumnConstants | protected function addValueSetColumnConstants(&$script)
{
foreach ($this->getTable()->getColumns() as $col) {
if ($col->isValueSetType()) {
$script .= "
/** The enumerated values for the " . $col->getName() . " field */";
foreach ($col->getValueSet() as $value... | php | protected function addValueSetColumnConstants(&$script)
{
foreach ($this->getTable()->getColumns() as $col) {
if ($col->isValueSetType()) {
$script .= "
/** The enumerated values for the " . $col->getName() . " field */";
foreach ($col->getValueSet() as $value... | [
"protected",
"function",
"addValueSetColumnConstants",
"(",
"&",
"$",
"script",
")",
"{",
"foreach",
"(",
"$",
"this",
"->",
"getTable",
"(",
")",
"->",
"getColumns",
"(",
")",
"as",
"$",
"col",
")",
"{",
"if",
"(",
"$",
"col",
"->",
"isValueSetType",
... | Adds the valueSet constants for ENUM and SET columns.
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"valueSet",
"constants",
"for",
"ENUM",
"and",
"SET",
"columns",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/TableMapBuilder.php#L219-L233 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/TableMapBuilder.php | TableMapBuilder.addValueSetColumnAttributes | protected function addValueSetColumnAttributes(&$script)
{
$script .= "
/** The enumerated values for this table */
protected static \$enumValueSets = array(";
foreach ($this->getTable()->getColumns() as $col) {
if ($col->isValueSetType()) {
$script .= "
... | php | protected function addValueSetColumnAttributes(&$script)
{
$script .= "
/** The enumerated values for this table */
protected static \$enumValueSets = array(";
foreach ($this->getTable()->getColumns() as $col) {
if ($col->isValueSetType()) {
$script .= "
... | [
"protected",
"function",
"addValueSetColumnAttributes",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"script",
".=",
"\"\n /** The enumerated values for this table */\n protected static \\$enumValueSets = array(\"",
";",
"foreach",
"(",
"$",
"this",
"->",
"getTable",
"(",
... | Adds the valueSet attributes for ENUM columns.
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"valueSet",
"attributes",
"for",
"ENUM",
"columns",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/TableMapBuilder.php#L239-L259 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/TableMapBuilder.php | TableMapBuilder.addInheritanceColumnConstants | public function addInheritanceColumnConstants(&$script)
{
if (!$col = $this->getTable()->getChildrenColumn()) {
return;
}
if (!$col->isEnumeratedClasses()) {
return;
}
foreach ($col->getChildren() as $child) {
$childBuilder = $this->getMu... | php | public function addInheritanceColumnConstants(&$script)
{
if (!$col = $this->getTable()->getChildrenColumn()) {
return;
}
if (!$col->isEnumeratedClasses()) {
return;
}
foreach ($col->getChildren() as $child) {
$childBuilder = $this->getMu... | [
"public",
"function",
"addInheritanceColumnConstants",
"(",
"&",
"$",
"script",
")",
"{",
"if",
"(",
"!",
"$",
"col",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
"->",
"getChildrenColumn",
"(",
")",
")",
"{",
"return",
";",
"}",
"if",
"(",
"!",
"$"... | Adds the CLASSKEY_* and CLASSNAME_* constants used for inheritance.
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"CLASSKEY_",
"*",
"and",
"CLASSNAME_",
"*",
"constants",
"used",
"for",
"inheritance",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/TableMapBuilder.php#L304-L336 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/TableMapBuilder.php | TableMapBuilder.addClassClose | protected function addClassClose(&$script)
{
$script .= "
} // " . $this->getUnqualifiedClassName() . "
// This is the static code needed to register the TableMap for this table with the main Propel class.
//
".$this->getUnqualifiedClassName()."::buildTableMap();
";
$this->applyBehaviorModifier('tab... | php | protected function addClassClose(&$script)
{
$script .= "
} // " . $this->getUnqualifiedClassName() . "
// This is the static code needed to register the TableMap for this table with the main Propel class.
//
".$this->getUnqualifiedClassName()."::buildTableMap();
";
$this->applyBehaviorModifier('tab... | [
"protected",
"function",
"addClassClose",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"script",
".=",
"\"\n} // \"",
".",
"$",
"this",
"->",
"getUnqualifiedClassName",
"(",
")",
".",
"\"\n// This is the static code needed to register the TableMap for this table with the main Pr... | Closes class.
@param string &$script The script will be modified in this method. | [
"Closes",
"class",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/TableMapBuilder.php#L409-L418 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/TableMapBuilder.php | TableMapBuilder.addInitialize | protected function addInitialize(&$script)
{
$table = $this->getTable();
$platform = $this->getPlatform();
$script .= "
/**
* Initialize the table attributes and columns
* Relations are not initialized by this method since they are lazy loaded
*
* @return void
... | php | protected function addInitialize(&$script)
{
$table = $this->getTable();
$platform = $this->getPlatform();
$script .= "
/**
* Initialize the table attributes and columns
* Relations are not initialized by this method since they are lazy loaded
*
* @return void
... | [
"protected",
"function",
"addInitialize",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"$",
"platform",
"=",
"$",
"this",
"->",
"getPlatform",
"(",
")",
";",
"$",
"script",
".=",
"\"\n /**\n ... | Adds the addInitialize() method to the table map class.
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"addInitialize",
"()",
"method",
"to",
"the",
"table",
"map",
"class",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/TableMapBuilder.php#L445-L542 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/TableMapBuilder.php | TableMapBuilder.addBuildRelations | protected function addBuildRelations(&$script)
{
$script .= "
/**
* Build the RelationMap objects for this table relationships
*/
public function buildRelations()
{";
foreach ($this->getTable()->getForeignKeys() as $fkey) {
$joinCondition = var_export($fkey->getNorm... | php | protected function addBuildRelations(&$script)
{
$script .= "
/**
* Build the RelationMap objects for this table relationships
*/
public function buildRelations()
{";
foreach ($this->getTable()->getForeignKeys() as $fkey) {
$joinCondition = var_export($fkey->getNorm... | [
"protected",
"function",
"addBuildRelations",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"script",
".=",
"\"\n /**\n * Build the RelationMap objects for this table relationships\n */\n public function buildRelations()\n {\"",
";",
"foreach",
"(",
"$",
"this",
"->",
... | Adds the method that build the RelationMap objects
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"method",
"that",
"build",
"the",
"RelationMap",
"objects"
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/TableMapBuilder.php#L548-L595 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/TableMapBuilder.php | TableMapBuilder.addGetBehaviors | protected function addGetBehaviors(&$script)
{
$behaviors = $this->getTable()->getBehaviors();
if ($behaviors) {
$script .= "
/**
*
* Gets the list of behaviors registered for this table
*
* @return array Associative array (name => parameters) of behaviors
*/... | php | protected function addGetBehaviors(&$script)
{
$behaviors = $this->getTable()->getBehaviors();
if ($behaviors) {
$script .= "
/**
*
* Gets the list of behaviors registered for this table
*
* @return array Associative array (name => parameters) of behaviors
*/... | [
"protected",
"function",
"addGetBehaviors",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"behaviors",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
"->",
"getBehaviors",
"(",
")",
";",
"if",
"(",
"$",
"behaviors",
")",
"{",
"$",
"script",
".=",
"\"\n /**... | Adds the behaviors getter
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"behaviors",
"getter"
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/TableMapBuilder.php#L601-L636 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/TableMapBuilder.php | TableMapBuilder.addGetPrimaryKeyHash | protected function addGetPrimaryKeyHash(&$script)
{
// We have to iterate through all the columns so that we know the offset of the primary
// key columns.
$n = 0;
$pk = [];
$cond = [];
foreach ($this->getTable()->getColumns() as $col) {
if (!$col->isLazyL... | php | protected function addGetPrimaryKeyHash(&$script)
{
// We have to iterate through all the columns so that we know the offset of the primary
// key columns.
$n = 0;
$pk = [];
$cond = [];
foreach ($this->getTable()->getColumns() as $col) {
if (!$col->isLazyL... | [
"protected",
"function",
"addGetPrimaryKeyHash",
"(",
"&",
"$",
"script",
")",
"{",
"// We have to iterate through all the columns so that we know the offset of the primary",
"// key columns.",
"$",
"n",
"=",
"0",
";",
"$",
"pk",
"=",
"[",
"]",
";",
"$",
"cond",
"=",
... | Adds method to get a version of the primary key that can be used as a unique key for identifier map.
@param string &$script The script will be modified in this method. | [
"Adds",
"method",
"to",
"get",
"a",
"version",
"of",
"the",
"primary",
"key",
"that",
"can",
"be",
"used",
"as",
"a",
"unique",
"key",
"for",
"identifier",
"map",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/TableMapBuilder.php#L761-L811 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/TableMapBuilder.php | TableMapBuilder.addGetPrimaryKeyFromRow | protected function addGetPrimaryKeyFromRow(&$script)
{
$script .= "
/**
* Retrieves the primary key from the DB resultset row
* For tables with a single-column primary key, that simple pkey value will be returned. For tables with
* a multi-column primary key, an array of the primary key ... | php | protected function addGetPrimaryKeyFromRow(&$script)
{
$script .= "
/**
* Retrieves the primary key from the DB resultset row
* For tables with a single-column primary key, that simple pkey value will be returned. For tables with
* a multi-column primary key, an array of the primary key ... | [
"protected",
"function",
"addGetPrimaryKeyFromRow",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"script",
".=",
"\"\n /**\n * Retrieves the primary key from the DB resultset row\n * For tables with a single-column primary key, that simple pkey value will be returned. For tables with\... | Adds method to get the primary key from a row
@param string &$script The script will be modified in this method. | [
"Adds",
"method",
"to",
"get",
"the",
"primary",
"key",
"from",
"a",
"row"
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/TableMapBuilder.php#L817-L886 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/TableMapBuilder.php | TableMapBuilder.addGetOMClassMethod | protected function addGetOMClassMethod(&$script)
{
$table = $this->getTable();
if ($table->getChildrenColumn()) {
$this->addGetOMClass_Inheritance($script);
} else {
if ($table->isAbstract()) {
$this->addGetOMClass_NoInheritance_Abstract($script);
... | php | protected function addGetOMClassMethod(&$script)
{
$table = $this->getTable();
if ($table->getChildrenColumn()) {
$this->addGetOMClass_Inheritance($script);
} else {
if ($table->isAbstract()) {
$this->addGetOMClass_NoInheritance_Abstract($script);
... | [
"protected",
"function",
"addGetOMClassMethod",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"if",
"(",
"$",
"table",
"->",
"getChildrenColumn",
"(",
")",
")",
"{",
"$",
"this",
"->",
"addGetOMClas... | Adds the correct getOMClass() method, depending on whether this table uses inheritance.
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"correct",
"getOMClass",
"()",
"method",
"depending",
"on",
"whether",
"this",
"table",
"uses",
"inheritance",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/TableMapBuilder.php#L892-L904 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/TableMapBuilder.php | TableMapBuilder.addGetOMClass_Inheritance | protected function addGetOMClass_Inheritance(&$script)
{
$col = $this->getTable()->getChildrenColumn();
$script .= "
/**
* The returned Class will contain objects of the default type or
* objects that inherit from the default.
*
* @param array \$row ConnectionInterface resu... | php | protected function addGetOMClass_Inheritance(&$script)
{
$col = $this->getTable()->getChildrenColumn();
$script .= "
/**
* The returned Class will contain objects of the default type or
* objects that inherit from the default.
*
* @param array \$row ConnectionInterface resu... | [
"protected",
"function",
"addGetOMClass_Inheritance",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"col",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
"->",
"getChildrenColumn",
"(",
")",
";",
"$",
"script",
".=",
"\"\n /**\n * The returned Class will contain o... | Adds a getOMClass() for non-abstract tables that have inheritance.
@param string &$script The script will be modified in this method. | [
"Adds",
"a",
"getOMClass",
"()",
"for",
"non",
"-",
"abstract",
"tables",
"that",
"have",
"inheritance",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/TableMapBuilder.php#L910-L968 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/TableMapBuilder.php | TableMapBuilder.addPopulateObject | protected function addPopulateObject(&$script)
{
$table = $this->getTable();
$script .= "
/**
* Populates an object of the default type or an object that inherit from the default.
*
* @param array \$row row returned by DataFetcher->fetch().
* @param int \$offset ... | php | protected function addPopulateObject(&$script)
{
$table = $this->getTable();
$script .= "
/**
* Populates an object of the default type or an object that inherit from the default.
*
* @param array \$row row returned by DataFetcher->fetch().
* @param int \$offset ... | [
"protected",
"function",
"addPopulateObject",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"$",
"script",
".=",
"\"\n /**\n * Populates an object of the default type or an object that inherit from the default.\... | Adds the populateObject() method.
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"populateObject",
"()",
"method",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/TableMapBuilder.php#L1020-L1072 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/TableMapBuilder.php | TableMapBuilder.addPopulateObjects | protected function addPopulateObjects(&$script)
{
$table = $this->getTable();
$script .= "
/**
* The returned array will contain objects of the default type or
* objects that inherit from the default.
*
* @param DataFetcherInterface \$dataFetcher
* @return array
* @... | php | protected function addPopulateObjects(&$script)
{
$table = $this->getTable();
$script .= "
/**
* The returned array will contain objects of the default type or
* objects that inherit from the default.
*
* @param DataFetcherInterface \$dataFetcher
* @return array
* @... | [
"protected",
"function",
"addPopulateObjects",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"$",
"script",
".=",
"\"\n /**\n * The returned array will contain objects of the default type or\n * objects that... | Adds the populateObjects() method.
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"populateObjects",
"()",
"method",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/TableMapBuilder.php#L1078-L1137 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/TableMapBuilder.php | TableMapBuilder.addDoDeleteAll | protected function addDoDeleteAll(&$script)
{
$table = $this->getTable();
$script .= "
/**
* Deletes all rows from the ".$table->getName()." table.
*
* @param ConnectionInterface \$con the connection to use
* @return int The number of affected rows (if supported by underlying... | php | protected function addDoDeleteAll(&$script)
{
$table = $this->getTable();
$script .= "
/**
* Deletes all rows from the ".$table->getName()." table.
*
* @param ConnectionInterface \$con the connection to use
* @return int The number of affected rows (if supported by underlying... | [
"protected",
"function",
"addDoDeleteAll",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"$",
"script",
".=",
"\"\n /**\n * Deletes all rows from the \"",
".",
"$",
"table",
"->",
"getName",
"(",
"... | Adds the doDeleteAll() method.
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"doDeleteAll",
"()",
"method",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/TableMapBuilder.php#L1207-L1222 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/TableMapBuilder.php | TableMapBuilder.addDoDelete | protected function addDoDelete(&$script)
{
$table = $this->getTable();
$script .= "
/**
* Performs a DELETE on the database, given a ".$this->getObjectClassName()." or Criteria object OR a primary key value.
*
* @param mixed \$values Criteria or ".$this->getObjectCla... | php | protected function addDoDelete(&$script)
{
$table = $this->getTable();
$script .= "
/**
* Performs a DELETE on the database, given a ".$this->getObjectClassName()." or Criteria object OR a primary key value.
*
* @param mixed \$values Criteria or ".$this->getObjectCla... | [
"protected",
"function",
"addDoDelete",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"$",
"script",
".=",
"\"\n /**\n * Performs a DELETE on the database, given a \"",
".",
"$",
"this",
"->",
"getObje... | Adds the doDelete() method.
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"doDelete",
"()",
"method",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/TableMapBuilder.php#L1228-L1324 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/TableMapBuilder.php | TableMapBuilder.addDoInsert | protected function addDoInsert(&$script)
{
$table = $this->getTable();
$tableMapClass = $this->getTableMapClass();
$script .= "
/**
* Performs an INSERT on the database, given a ".$this->getObjectClassName()." or Criteria object.
*
* @param mixed \$criteria ... | php | protected function addDoInsert(&$script)
{
$table = $this->getTable();
$tableMapClass = $this->getTableMapClass();
$script .= "
/**
* Performs an INSERT on the database, given a ".$this->getObjectClassName()." or Criteria object.
*
* @param mixed \$criteria ... | [
"protected",
"function",
"addDoInsert",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"$",
"tableMapClass",
"=",
"$",
"this",
"->",
"getTableMapClass",
"(",
")",
";",
"$",
"script",
".=",
"\"\n /... | Adds the doInsert() method.
@param string &$script The script will be modified in this method. | [
"Adds",
"the",
"doInsert",
"()",
"method",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/TableMapBuilder.php#L1330-L1402 |
propelorm/Propel2 | src/Propel/Runtime/Adapter/Pdo/OracleAdapter.php | OracleAdapter.bindValue | public function bindValue(\PDOStatement $stmt, $parameter, $value, ColumnMap $cMap, $position = null)
{
if (PropelTypes::CLOB_EMU === $cMap->getType()) {
return $stmt->bindParam(':p'.$position, $value, $cMap->getPdoType(), strlen($value));
}
if ($cMap->isTemporal()) {
... | php | public function bindValue(\PDOStatement $stmt, $parameter, $value, ColumnMap $cMap, $position = null)
{
if (PropelTypes::CLOB_EMU === $cMap->getType()) {
return $stmt->bindParam(':p'.$position, $value, $cMap->getPdoType(), strlen($value));
}
if ($cMap->isTemporal()) {
... | [
"public",
"function",
"bindValue",
"(",
"\\",
"PDOStatement",
"$",
"stmt",
",",
"$",
"parameter",
",",
"$",
"value",
",",
"ColumnMap",
"$",
"cMap",
",",
"$",
"position",
"=",
"null",
")",
"{",
"if",
"(",
"PropelTypes",
"::",
"CLOB_EMU",
"===",
"$",
"cM... | @see AdapterInterface::bindValue()
@param \PDOStatement $stmt
@param string $parameter
@param mixed $value
@param ColumnMap $cMap
@param null|integer $position
@return boolean | [
"@see",
"AdapterInterface",
"::",
"bindValue",
"()"
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Runtime/Adapter/Pdo/OracleAdapter.php#L217-L232 |
propelorm/Propel2 | src/Propel/Runtime/Adapter/Pdo/OracleAdapter.php | OracleAdapter.prepareParams | protected function prepareParams($params)
{
if (isset($params['dsn'])) {
$params['dsn'] = str_replace('oracle:', 'oci:', $params['dsn']);
}
return parent::prepareParams($params);
} | php | protected function prepareParams($params)
{
if (isset($params['dsn'])) {
$params['dsn'] = str_replace('oracle:', 'oci:', $params['dsn']);
}
return parent::prepareParams($params);
} | [
"protected",
"function",
"prepareParams",
"(",
"$",
"params",
")",
"{",
"if",
"(",
"isset",
"(",
"$",
"params",
"[",
"'dsn'",
"]",
")",
")",
"{",
"$",
"params",
"[",
"'dsn'",
"]",
"=",
"str_replace",
"(",
"'oracle:'",
",",
"'oci:'",
",",
"$",
"params... | We need to replace oracle: to oci: in connection's dsn.
@param array $params
@return array | [
"We",
"need",
"to",
"replace",
"oracle",
":",
"to",
"oci",
":",
"in",
"connection",
"s",
"dsn",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Runtime/Adapter/Pdo/OracleAdapter.php#L240-L247 |
propelorm/Propel2 | src/Propel/Generator/Behavior/AutoAddPk/AutoAddPkBehavior.php | AutoAddPkBehavior.modifyDatabase | public function modifyDatabase()
{
foreach ($this->getDatabase()->getTables() as $table) {
if (!$table->hasPrimaryKey()) {
$b = clone $this;
$table->addBehavior($b);
}
}
} | php | public function modifyDatabase()
{
foreach ($this->getDatabase()->getTables() as $table) {
if (!$table->hasPrimaryKey()) {
$b = clone $this;
$table->addBehavior($b);
}
}
} | [
"public",
"function",
"modifyDatabase",
"(",
")",
"{",
"foreach",
"(",
"$",
"this",
"->",
"getDatabase",
"(",
")",
"->",
"getTables",
"(",
")",
"as",
"$",
"table",
")",
"{",
"if",
"(",
"!",
"$",
"table",
"->",
"hasPrimaryKey",
"(",
")",
")",
"{",
"... | Copy the behavior to the database tables
Only for tables that have no Pk | [
"Copy",
"the",
"behavior",
"to",
"the",
"database",
"tables",
"Only",
"for",
"tables",
"that",
"have",
"no",
"Pk"
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Behavior/AutoAddPk/AutoAddPkBehavior.php#L33-L41 |
propelorm/Propel2 | src/Propel/Generator/Behavior/AutoAddPk/AutoAddPkBehavior.php | AutoAddPkBehavior.modifyTable | public function modifyTable()
{
$table = $this->getTable();
if (!$table->hasPrimaryKey() && !$table->hasBehavior('concrete_inheritance')) {
$columnAttributes = array_merge(['primaryKey' => 'true'], $this->getParameters());
$this->getTable()->addColumn($columnAttributes);
... | php | public function modifyTable()
{
$table = $this->getTable();
if (!$table->hasPrimaryKey() && !$table->hasBehavior('concrete_inheritance')) {
$columnAttributes = array_merge(['primaryKey' => 'true'], $this->getParameters());
$this->getTable()->addColumn($columnAttributes);
... | [
"public",
"function",
"modifyTable",
"(",
")",
"{",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"if",
"(",
"!",
"$",
"table",
"->",
"hasPrimaryKey",
"(",
")",
"&&",
"!",
"$",
"table",
"->",
"hasBehavior",
"(",
"'concrete_inheritanc... | Add the primary key to the current table | [
"Add",
"the",
"primary",
"key",
"to",
"the",
"current",
"table"
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Behavior/AutoAddPk/AutoAddPkBehavior.php#L46-L53 |
propelorm/Propel2 | src/Propel/Generator/Behavior/Delegate/DelegateBehavior.php | DelegateBehavior.isColumnForeignKeyOrDuplicated | protected function isColumnForeignKeyOrDuplicated(Column $column)
{
$delegateTable = $column->getTable();
$table = $this->getTable();
$fks = [];
if (!isset($this->double_defined)) {
$this->double_defined = [];
foreach ($this->delegates+[$table->getName() => ... | php | protected function isColumnForeignKeyOrDuplicated(Column $column)
{
$delegateTable = $column->getTable();
$table = $this->getTable();
$fks = [];
if (!isset($this->double_defined)) {
$this->double_defined = [];
foreach ($this->delegates+[$table->getName() => ... | [
"protected",
"function",
"isColumnForeignKeyOrDuplicated",
"(",
"Column",
"$",
"column",
")",
"{",
"$",
"delegateTable",
"=",
"$",
"column",
"->",
"getTable",
"(",
")",
";",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"$",
"fks",
"="... | @param Column $column
@return bool
@throws PropelException | [
"@param",
"Column",
"$column"
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Behavior/Delegate/DelegateBehavior.php#L184-L223 |
propelorm/Propel2 | src/Propel/Generator/Manager/ModelManager.php | ModelManager.doBuild | protected function doBuild(AbstractOMBuilder $builder, $overwrite = true)
{
$path = $builder->getClassFilePath();
$file = new \SplFileInfo($this->getWorkingDirectory() . DIRECTORY_SEPARATOR . $path);
$this->filesystem->mkdir($file->getPath());
// skip files already created once
... | php | protected function doBuild(AbstractOMBuilder $builder, $overwrite = true)
{
$path = $builder->getClassFilePath();
$file = new \SplFileInfo($this->getWorkingDirectory() . DIRECTORY_SEPARATOR . $path);
$this->filesystem->mkdir($file->getPath());
// skip files already created once
... | [
"protected",
"function",
"doBuild",
"(",
"AbstractOMBuilder",
"$",
"builder",
",",
"$",
"overwrite",
"=",
"true",
")",
"{",
"$",
"path",
"=",
"$",
"builder",
"->",
"getClassFilePath",
"(",
")",
";",
"$",
"file",
"=",
"new",
"\\",
"SplFileInfo",
"(",
"$",... | Uses a builder class to create the output class.
This method assumes that the DataModelBuilder class has been initialized
with the build properties.
@param AbstractOMBuilder $builder
@param boolean $overwrite
@return int | [
"Uses",
"a",
"builder",
"class",
"to",
"create",
"the",
"output",
"class",
".",
"This",
"method",
"assumes",
"that",
"the",
"DataModelBuilder",
"class",
"has",
"been",
"initialized",
"with",
"the",
"build",
"properties",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Manager/ModelManager.php#L157-L189 |
propelorm/Propel2 | src/Propel/Generator/Behavior/NestedSet/NestedSetBehavior.php | NestedSetBehavior.modifyTable | public function modifyTable()
{
$table = $this->getTable();
if (!$table->hasColumn($this->getParameter('left_column'))) {
$table->addColumn([
'name' => $this->getParameter('left_column'),
'type' => 'INTEGER'
]);
}
if (!$table-... | php | public function modifyTable()
{
$table = $this->getTable();
if (!$table->hasColumn($this->getParameter('left_column'))) {
$table->addColumn([
'name' => $this->getParameter('left_column'),
'type' => 'INTEGER'
]);
}
if (!$table-... | [
"public",
"function",
"modifyTable",
"(",
")",
"{",
"$",
"table",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
";",
"if",
"(",
"!",
"$",
"table",
"->",
"hasColumn",
"(",
"$",
"this",
"->",
"getParameter",
"(",
"'left_column'",
")",
")",
")",
"{",
... | Add the left, right and scope to the current table | [
"Add",
"the",
"left",
"right",
"and",
"scope",
"to",
"the",
"current",
"table"
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Behavior/NestedSet/NestedSetBehavior.php#L39-L70 |
propelorm/Propel2 | src/Propel/Generator/Command/AbstractCommand.php | AbstractCommand.configure | protected function configure()
{
$this
->addOption('platform', null, InputOption::VALUE_REQUIRED, 'The platform to use. Define a full qualified class name or mysql|pgsql|sqlite|mssql|oracle.')
->addOption('config-dir', null, InputOption::VALUE_REQUIRED, 'The directory where the co... | php | protected function configure()
{
$this
->addOption('platform', null, InputOption::VALUE_REQUIRED, 'The platform to use. Define a full qualified class name or mysql|pgsql|sqlite|mssql|oracle.')
->addOption('config-dir', null, InputOption::VALUE_REQUIRED, 'The directory where the co... | [
"protected",
"function",
"configure",
"(",
")",
"{",
"$",
"this",
"->",
"addOption",
"(",
"'platform'",
",",
"null",
",",
"InputOption",
"::",
"VALUE_REQUIRED",
",",
"'The platform to use. Define a full qualified class name or mysql|pgsql|sqlite|mssql|oracle.'",
")",
"->",
... | {@inheritdoc} | [
"{"
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Command/AbstractCommand.php#L33-L40 |
propelorm/Propel2 | src/Propel/Generator/Command/AbstractCommand.php | AbstractCommand.getGeneratorConfig | protected function getGeneratorConfig(array $properties = null, InputInterface $input = null)
{
if (null === $input) {
return new GeneratorConfig(null, $properties);
}
if ($this->hasInputOption('platform', $input)) {
$properties['propel']['generator']['platformClass'... | php | protected function getGeneratorConfig(array $properties = null, InputInterface $input = null)
{
if (null === $input) {
return new GeneratorConfig(null, $properties);
}
if ($this->hasInputOption('platform', $input)) {
$properties['propel']['generator']['platformClass'... | [
"protected",
"function",
"getGeneratorConfig",
"(",
"array",
"$",
"properties",
"=",
"null",
",",
"InputInterface",
"$",
"input",
"=",
"null",
")",
"{",
"if",
"(",
"null",
"===",
"$",
"input",
")",
"{",
"return",
"new",
"GeneratorConfig",
"(",
"null",
",",... | Returns a new `GeneratorConfig` object with your `$properties` merged with
the configuration properties in the `config-dir` folder.
@param array $properties Properties to add to the configuration. They usually come from command line.
@param $input
@return GeneratorConfig | [
"Returns",
"a",
"new",
"GeneratorConfig",
"object",
"with",
"your",
"$properties",
"merged",
"with",
"the",
"configuration",
"properties",
"in",
"the",
"config",
"-",
"dir",
"folder",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Command/AbstractCommand.php#L51-L65 |
propelorm/Propel2 | src/Propel/Generator/Command/AbstractCommand.php | AbstractCommand.getSchemas | protected function getSchemas($directory, $recursive = false)
{
$finder = new Finder();
$finder
->name('*schema.xml')
->sortByName()
->in($directory);
if (!$recursive) {
$finder->depth(0);
}
return iterator_to_array($finder->fi... | php | protected function getSchemas($directory, $recursive = false)
{
$finder = new Finder();
$finder
->name('*schema.xml')
->sortByName()
->in($directory);
if (!$recursive) {
$finder->depth(0);
}
return iterator_to_array($finder->fi... | [
"protected",
"function",
"getSchemas",
"(",
"$",
"directory",
",",
"$",
"recursive",
"=",
"false",
")",
"{",
"$",
"finder",
"=",
"new",
"Finder",
"(",
")",
";",
"$",
"finder",
"->",
"name",
"(",
"'*schema.xml'",
")",
"->",
"sortByName",
"(",
")",
"->",... | Find every schema files.
@param string|array $directory Path to the input directory
@param bool $recursive Search for file inside the input directory and all subdirectories
@return array List of schema files | [
"Find",
"every",
"schema",
"files",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Command/AbstractCommand.php#L75-L87 |
propelorm/Propel2 | src/Propel/Generator/Command/AbstractCommand.php | AbstractCommand.parseConnection | protected function parseConnection($connection)
{
$pos = strpos($connection, '=');
$name = substr($connection, 0, $pos);
$dsn = substr($connection, $pos + 1, strlen($connection));
$pos = strpos($dsn, ':');
$adapter = substr($dsn, 0, $pos);
$extras = [];
f... | php | protected function parseConnection($connection)
{
$pos = strpos($connection, '=');
$name = substr($connection, 0, $pos);
$dsn = substr($connection, $pos + 1, strlen($connection));
$pos = strpos($dsn, ':');
$adapter = substr($dsn, 0, $pos);
$extras = [];
f... | [
"protected",
"function",
"parseConnection",
"(",
"$",
"connection",
")",
"{",
"$",
"pos",
"=",
"strpos",
"(",
"$",
"connection",
",",
"'='",
")",
";",
"$",
"name",
"=",
"substr",
"(",
"$",
"connection",
",",
"0",
",",
"$",
"pos",
")",
";",
"$",
"ds... | Parse a connection string and return an array with name, dsn and extra informations
@parama string $connection The connection string
@return array | [
"Parse",
"a",
"connection",
"string",
"and",
"return",
"an",
"array",
"with",
"name",
"dsn",
"and",
"extra",
"informations"
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Command/AbstractCommand.php#L121-L141 |
propelorm/Propel2 | src/Propel/Generator/Command/AbstractCommand.php | AbstractCommand.connectionToProperties | protected function connectionToProperties($connection, $section = null)
{
list($name, $dsn, $infos) = $this->parseConnection($connection);
$config['propel']['database']['connections'][$name]['classname'] = '\Propel\Runtime\Connection\ConnectionWrapper';
$config['propel']['database'][... | php | protected function connectionToProperties($connection, $section = null)
{
list($name, $dsn, $infos) = $this->parseConnection($connection);
$config['propel']['database']['connections'][$name]['classname'] = '\Propel\Runtime\Connection\ConnectionWrapper';
$config['propel']['database'][... | [
"protected",
"function",
"connectionToProperties",
"(",
"$",
"connection",
",",
"$",
"section",
"=",
"null",
")",
"{",
"list",
"(",
"$",
"name",
",",
"$",
"dsn",
",",
"$",
"infos",
")",
"=",
"$",
"this",
"->",
"parseConnection",
"(",
"$",
"connection",
... | Parse a connection string and return an array of properties to pass to GeneratorConfig constructor.
The connection must be in the following format:
`bookstore=mysql:host=127.0.0.1;dbname=test;user=root;password=foobar`
where "bookstore" is your propel database name (used in your schema.xml).
@param string $connection ... | [
"Parse",
"a",
"connection",
"string",
"and",
"return",
"an",
"array",
"of",
"properties",
"to",
"pass",
"to",
"GeneratorConfig",
"constructor",
".",
"The",
"connection",
"must",
"be",
"in",
"the",
"following",
"format",
":",
"bookstore",
"=",
"mysql",
":",
"... | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Command/AbstractCommand.php#L154-L174 |
propelorm/Propel2 | src/Propel/Generator/Command/AbstractCommand.php | AbstractCommand.hasInputOption | protected function hasInputOption($option, $input)
{
return $input->hasOption($option) && null !== $input->getOption($option);
} | php | protected function hasInputOption($option, $input)
{
return $input->hasOption($option) && null !== $input->getOption($option);
} | [
"protected",
"function",
"hasInputOption",
"(",
"$",
"option",
",",
"$",
"input",
")",
"{",
"return",
"$",
"input",
"->",
"hasOption",
"(",
"$",
"option",
")",
"&&",
"null",
"!==",
"$",
"input",
"->",
"getOption",
"(",
"$",
"option",
")",
";",
"}"
] | Check if a given input option exists and it isn't null.
@param string $option The name of the input option to check
@param \Symfony\Component\Console\Input\InputInterface $input object
@return boolean | [
"Check",
"if",
"a",
"given",
"input",
"option",
"exists",
"and",
"it",
"isn",
"t",
"null",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Command/AbstractCommand.php#L184-L187 |
propelorm/Propel2 | src/Propel/Generator/Command/AbstractCommand.php | AbstractCommand.hasInputArgument | protected function hasInputArgument($argument, $input)
{
return $input->hasArgument($argument) && null !== $input->getArgument($argument);
} | php | protected function hasInputArgument($argument, $input)
{
return $input->hasArgument($argument) && null !== $input->getArgument($argument);
} | [
"protected",
"function",
"hasInputArgument",
"(",
"$",
"argument",
",",
"$",
"input",
")",
"{",
"return",
"$",
"input",
"->",
"hasArgument",
"(",
"$",
"argument",
")",
"&&",
"null",
"!==",
"$",
"input",
"->",
"getArgument",
"(",
"$",
"argument",
")",
";"... | Check if a given input argument exists and it isn't null.
@param string $argument The name of the input argument to check
@param \Symfony\Component\Console\Input\InputInterface $input object
@return boolean | [
"Check",
"if",
"a",
"given",
"input",
"argument",
"exists",
"and",
"it",
"isn",
"t",
"null",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Command/AbstractCommand.php#L197-L200 |
propelorm/Propel2 | src/Propel/Runtime/Map/ColumnMap.php | ColumnMap.isLob | public function isLob()
{
return in_array($this->type, [
PropelTypes::BLOB,
PropelTypes::VARBINARY,
PropelTypes::LONGVARBINARY,
]);
} | php | public function isLob()
{
return in_array($this->type, [
PropelTypes::BLOB,
PropelTypes::VARBINARY,
PropelTypes::LONGVARBINARY,
]);
} | [
"public",
"function",
"isLob",
"(",
")",
"{",
"return",
"in_array",
"(",
"$",
"this",
"->",
"type",
",",
"[",
"PropelTypes",
"::",
"BLOB",
",",
"PropelTypes",
"::",
"VARBINARY",
",",
"PropelTypes",
"::",
"LONGVARBINARY",
",",
"]",
")",
";",
"}"
] | Whether this is a BLOB, LONGVARBINARY, or VARBINARY.
@return boolean | [
"Whether",
"this",
"is",
"a",
"BLOB",
"LONGVARBINARY",
"or",
"VARBINARY",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Runtime/Map/ColumnMap.php#L207-L214 |
propelorm/Propel2 | src/Propel/Runtime/Map/ColumnMap.php | ColumnMap.isTemporal | public function isTemporal()
{
return in_array($this->type, [
PropelTypes::TIMESTAMP,
PropelTypes::DATE,
PropelTypes::TIME,
PropelTypes::BU_DATE,
PropelTypes::BU_TIMESTAMP,
]);
} | php | public function isTemporal()
{
return in_array($this->type, [
PropelTypes::TIMESTAMP,
PropelTypes::DATE,
PropelTypes::TIME,
PropelTypes::BU_DATE,
PropelTypes::BU_TIMESTAMP,
]);
} | [
"public",
"function",
"isTemporal",
"(",
")",
"{",
"return",
"in_array",
"(",
"$",
"this",
"->",
"type",
",",
"[",
"PropelTypes",
"::",
"TIMESTAMP",
",",
"PropelTypes",
"::",
"DATE",
",",
"PropelTypes",
"::",
"TIME",
",",
"PropelTypes",
"::",
"BU_DATE",
",... | Whether this is a DATE/TIME/TIMESTAMP column.
@return boolean | [
"Whether",
"this",
"is",
"a",
"DATE",
"/",
"TIME",
"/",
"TIMESTAMP",
"column",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Runtime/Map/ColumnMap.php#L221-L230 |
propelorm/Propel2 | src/Propel/Runtime/Map/ColumnMap.php | ColumnMap.isNumeric | public function isNumeric()
{
return in_array($this->type, [
PropelTypes::NUMERIC,
PropelTypes::DECIMAL,
PropelTypes::TINYINT,
PropelTypes::SMALLINT,
PropelTypes::INTEGER,
PropelTypes::BIGINT,
PropelTypes::REAL,
... | php | public function isNumeric()
{
return in_array($this->type, [
PropelTypes::NUMERIC,
PropelTypes::DECIMAL,
PropelTypes::TINYINT,
PropelTypes::SMALLINT,
PropelTypes::INTEGER,
PropelTypes::BIGINT,
PropelTypes::REAL,
... | [
"public",
"function",
"isNumeric",
"(",
")",
"{",
"return",
"in_array",
"(",
"$",
"this",
"->",
"type",
",",
"[",
"PropelTypes",
"::",
"NUMERIC",
",",
"PropelTypes",
"::",
"DECIMAL",
",",
"PropelTypes",
"::",
"TINYINT",
",",
"PropelTypes",
"::",
"SMALLINT",
... | Whether this column is numeric (int, decimal, bigint etc).
@return boolean | [
"Whether",
"this",
"column",
"is",
"numeric",
"(",
"int",
"decimal",
"bigint",
"etc",
")",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Runtime/Map/ColumnMap.php#L237-L250 |
propelorm/Propel2 | src/Propel/Runtime/Map/ColumnMap.php | ColumnMap.isText | public function isText()
{
return in_array($this->type, [
PropelTypes::VARCHAR,
PropelTypes::LONGVARCHAR,
PropelTypes::CHAR,
]);
} | php | public function isText()
{
return in_array($this->type, [
PropelTypes::VARCHAR,
PropelTypes::LONGVARCHAR,
PropelTypes::CHAR,
]);
} | [
"public",
"function",
"isText",
"(",
")",
"{",
"return",
"in_array",
"(",
"$",
"this",
"->",
"type",
",",
"[",
"PropelTypes",
"::",
"VARCHAR",
",",
"PropelTypes",
"::",
"LONGVARCHAR",
",",
"PropelTypes",
"::",
"CHAR",
",",
"]",
")",
";",
"}"
] | Whether this column is a text column (varchar, char, longvarchar).
@return boolean | [
"Whether",
"this",
"column",
"is",
"a",
"text",
"column",
"(",
"varchar",
"char",
"longvarchar",
")",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Runtime/Map/ColumnMap.php#L267-L274 |
propelorm/Propel2 | src/Propel/Runtime/Map/ColumnMap.php | ColumnMap.getRelatedTable | public function getRelatedTable()
{
if (!$this->relatedTableName) {
throw new ForeignKeyNotFoundException(sprintf('Cannot fetch RelatedTable for column with no foreign key: %s.', $this->columnName));
}
return $this->table->getDatabaseMap()->getTable($this->relatedTableName);
... | php | public function getRelatedTable()
{
if (!$this->relatedTableName) {
throw new ForeignKeyNotFoundException(sprintf('Cannot fetch RelatedTable for column with no foreign key: %s.', $this->columnName));
}
return $this->table->getDatabaseMap()->getTable($this->relatedTableName);
... | [
"public",
"function",
"getRelatedTable",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"relatedTableName",
")",
"{",
"throw",
"new",
"ForeignKeyNotFoundException",
"(",
"sprintf",
"(",
"'Cannot fetch RelatedTable for column with no foreign key: %s.'",
",",
"$",
"t... | Get the TableMap object that this column is related to.
@return \Propel\Runtime\Map\TableMap The related TableMap object
@throws \Propel\Runtime\Map\Exception\ForeignKeyNotFoundException when called on a column with no foreign key | [
"Get",
"the",
"TableMap",
"object",
"that",
"this",
"column",
"is",
"related",
"to",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Runtime/Map/ColumnMap.php#L438-L445 |
propelorm/Propel2 | src/Propel/Runtime/Map/ColumnMap.php | ColumnMap.ignoreCase | public function ignoreCase($str, AdapterInterface $db)
{
if ($this->isText()) {
return $db->ignoreCase($str);
}
return $str;
} | php | public function ignoreCase($str, AdapterInterface $db)
{
if ($this->isText()) {
return $db->ignoreCase($str);
}
return $str;
} | [
"public",
"function",
"ignoreCase",
"(",
"$",
"str",
",",
"AdapterInterface",
"$",
"db",
")",
"{",
"if",
"(",
"$",
"this",
"->",
"isText",
"(",
")",
")",
"{",
"return",
"$",
"db",
"->",
"ignoreCase",
"(",
"$",
"str",
")",
";",
"}",
"return",
"$",
... | Performs DB-specific ignore case, but only if the column type necessitates it.
@param string $str The expression we want to apply the ignore case formatting to (e.g. the column name).
@param \Propel\Runtime\Adapter\AdapterInterface $db | [
"Performs",
"DB",
"-",
"specific",
"ignore",
"case",
"but",
"only",
"if",
"the",
"column",
"type",
"necessitates",
"it",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Runtime/Map/ColumnMap.php#L494-L501 |
propelorm/Propel2 | src/Propel/Runtime/Map/ColumnMap.php | ColumnMap.normalizeName | public static function normalizeName($name)
{
if (false !== ($pos = strrpos($name, '.'))) {
$name = substr($name, $pos + 1);
$name = trim($name," \t\n\r\0\x0B`'()\"[]~!-{}%^&.");
}
return strtoupper($name);
} | php | public static function normalizeName($name)
{
if (false !== ($pos = strrpos($name, '.'))) {
$name = substr($name, $pos + 1);
$name = trim($name," \t\n\r\0\x0B`'()\"[]~!-{}%^&.");
}
return strtoupper($name);
} | [
"public",
"static",
"function",
"normalizeName",
"(",
"$",
"name",
")",
"{",
"if",
"(",
"false",
"!==",
"(",
"$",
"pos",
"=",
"strrpos",
"(",
"$",
"name",
",",
"'.'",
")",
")",
")",
"{",
"$",
"name",
"=",
"substr",
"(",
"$",
"name",
",",
"$",
"... | Normalizes the column name, removing table prefix and uppercasing.
article.first_name becomes FIRST_NAME
@param string $name
@return string Normalized column name. | [
"Normalizes",
"the",
"column",
"name",
"removing",
"table",
"prefix",
"and",
"uppercasing",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Runtime/Map/ColumnMap.php#L511-L519 |
propelorm/Propel2 | src/Propel/Generator/Model/Diff/ForeignKeyComparator.php | ForeignKeyComparator.computeDiff | public static function computeDiff(ForeignKey $fromFk, ForeignKey $toFk, $caseInsensitive = false)
{
// Check for differences in local and remote table
$test = $caseInsensitive ?
strtolower($fromFk->getTableName()) !== strtolower($toFk->getTableName()) :
$fromFk->getTableName... | php | public static function computeDiff(ForeignKey $fromFk, ForeignKey $toFk, $caseInsensitive = false)
{
// Check for differences in local and remote table
$test = $caseInsensitive ?
strtolower($fromFk->getTableName()) !== strtolower($toFk->getTableName()) :
$fromFk->getTableName... | [
"public",
"static",
"function",
"computeDiff",
"(",
"ForeignKey",
"$",
"fromFk",
",",
"ForeignKey",
"$",
"toFk",
",",
"$",
"caseInsensitive",
"=",
"false",
")",
"{",
"// Check for differences in local and remote table",
"$",
"test",
"=",
"$",
"caseInsensitive",
"?",... | Compute the difference between two Foreign key objects
@param ForeignKey $fromFk
@param ForeignKey $toFk
@param boolean $caseInsensitive Whether the comparison is case insensitive.
False by default.
@return boolean false if the two fks are similar, true if they have differences | [
"Compute",
"the",
"difference",
"between",
"two",
"Foreign",
"key",
"objects"
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Model/Diff/ForeignKeyComparator.php#L34-L81 |
propelorm/Propel2 | src/Propel/Runtime/Connection/ConnectionFactory.php | ConnectionFactory.create | public static function create(array $configuration = [], AdapterInterface $adapter, $defaultConnectionClass = self::DEFAULT_CONNECTION_CLASS)
{
if (isset($configuration['classname'])) {
$connectionClass = $configuration['classname'];
} else {
$connectionClass = $defaultConnec... | php | public static function create(array $configuration = [], AdapterInterface $adapter, $defaultConnectionClass = self::DEFAULT_CONNECTION_CLASS)
{
if (isset($configuration['classname'])) {
$connectionClass = $configuration['classname'];
} else {
$connectionClass = $defaultConnec... | [
"public",
"static",
"function",
"create",
"(",
"array",
"$",
"configuration",
"=",
"[",
"]",
",",
"AdapterInterface",
"$",
"adapter",
",",
"$",
"defaultConnectionClass",
"=",
"self",
"::",
"DEFAULT_CONNECTION_CLASS",
")",
"{",
"if",
"(",
"isset",
"(",
"$",
"... | Open a database connection based on a configuration.
@param array $configuration
@param AdapterInterface $adapter
@param string $defaultConnectionClass
@return ConnectionInterface
@throws \Propel\Runtime\Exception\InvalidArgumentException
@throws Exception\ConnectionException | [
"Open",
"a",
"database",
"connection",
"based",
"on",
"a",
"configuration",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Runtime/Connection/ConnectionFactory.php#L33-L63 |
propelorm/Propel2 | src/Propel/Runtime/Collection/ArrayCollection.php | ArrayCollection.save | public function save($con = null)
{
if (!method_exists($this->getFullyQualifiedModel(), 'save')) {
throw new ReadOnlyModelException('Cannot save objects on a read-only model');
}
if (null === $con) {
$con = $this->getWriteConnection();
}
$con->transact... | php | public function save($con = null)
{
if (!method_exists($this->getFullyQualifiedModel(), 'save')) {
throw new ReadOnlyModelException('Cannot save objects on a read-only model');
}
if (null === $con) {
$con = $this->getWriteConnection();
}
$con->transact... | [
"public",
"function",
"save",
"(",
"$",
"con",
"=",
"null",
")",
"{",
"if",
"(",
"!",
"method_exists",
"(",
"$",
"this",
"->",
"getFullyQualifiedModel",
"(",
")",
",",
"'save'",
")",
")",
"{",
"throw",
"new",
"ReadOnlyModelException",
"(",
"'Cannot save ob... | Save all the elements in the collection
@param ConnectionInterface $con
@throws ReadOnlyModelException
@throws PropelException | [
"Save",
"all",
"the",
"elements",
"in",
"the",
"collection"
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Runtime/Collection/ArrayCollection.php#L38-L55 |
propelorm/Propel2 | src/Propel/Runtime/Collection/ArrayCollection.php | ArrayCollection.delete | public function delete($con = null)
{
if (!method_exists($this->getFullyQualifiedModel(), 'delete')) {
throw new ReadOnlyModelException('Cannot delete objects on a read-only model');
}
if (null === $con) {
$con = $this->getWriteConnection();
}
$con->tr... | php | public function delete($con = null)
{
if (!method_exists($this->getFullyQualifiedModel(), 'delete')) {
throw new ReadOnlyModelException('Cannot delete objects on a read-only model');
}
if (null === $con) {
$con = $this->getWriteConnection();
}
$con->tr... | [
"public",
"function",
"delete",
"(",
"$",
"con",
"=",
"null",
")",
"{",
"if",
"(",
"!",
"method_exists",
"(",
"$",
"this",
"->",
"getFullyQualifiedModel",
"(",
")",
",",
"'delete'",
")",
")",
"{",
"throw",
"new",
"ReadOnlyModelException",
"(",
"'Cannot del... | Delete all the elements in the collection
@param ConnectionInterface $con
@throws ReadOnlyModelException
@throws PropelException | [
"Delete",
"all",
"the",
"elements",
"in",
"the",
"collection"
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Runtime/Collection/ArrayCollection.php#L65-L81 |
propelorm/Propel2 | src/Propel/Runtime/Collection/ArrayCollection.php | ArrayCollection.getPrimaryKeys | public function getPrimaryKeys($usePrefix = true)
{
$ret = [];
$callable = [$this->getTableMapClass(), 'getPrimaryKeyFromRow'];
foreach ($this as $key => $element) {
$key = $usePrefix ? ($this->getModel() . '_' . $key) : $key;
$ret[$key] = call_user_func($... | php | public function getPrimaryKeys($usePrefix = true)
{
$ret = [];
$callable = [$this->getTableMapClass(), 'getPrimaryKeyFromRow'];
foreach ($this as $key => $element) {
$key = $usePrefix ? ($this->getModel() . '_' . $key) : $key;
$ret[$key] = call_user_func($... | [
"public",
"function",
"getPrimaryKeys",
"(",
"$",
"usePrefix",
"=",
"true",
")",
"{",
"$",
"ret",
"=",
"[",
"]",
";",
"$",
"callable",
"=",
"[",
"$",
"this",
"->",
"getTableMapClass",
"(",
")",
",",
"'getPrimaryKeyFromRow'",
"]",
";",
"foreach",
"(",
"... | Get an array of the primary keys of all the objects in the collection
@param boolean $usePrefix
@return array The list of the primary keys of the collection | [
"Get",
"an",
"array",
"of",
"the",
"primary",
"keys",
"of",
"all",
"the",
"objects",
"in",
"the",
"collection"
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Runtime/Collection/ArrayCollection.php#L89-L100 |
propelorm/Propel2 | src/Propel/Runtime/Collection/ArrayCollection.php | ArrayCollection.fromArray | public function fromArray($arr)
{
$obj = $this->getWorkerObject();
foreach ($arr as $element) {
$obj->clear();
$obj->fromArray($element);
$this->append($obj->toArray());
}
} | php | public function fromArray($arr)
{
$obj = $this->getWorkerObject();
foreach ($arr as $element) {
$obj->clear();
$obj->fromArray($element);
$this->append($obj->toArray());
}
} | [
"public",
"function",
"fromArray",
"(",
"$",
"arr",
")",
"{",
"$",
"obj",
"=",
"$",
"this",
"->",
"getWorkerObject",
"(",
")",
";",
"foreach",
"(",
"$",
"arr",
"as",
"$",
"element",
")",
"{",
"$",
"obj",
"->",
"clear",
"(",
")",
";",
"$",
"obj",
... | Populates the collection from an array
Uses the object model to force the column types
Does not empty the collection before adding the data from the array
@param array $arr | [
"Populates",
"the",
"collection",
"from",
"an",
"array",
"Uses",
"the",
"object",
"model",
"to",
"force",
"the",
"column",
"types",
"Does",
"not",
"empty",
"the",
"collection",
"before",
"adding",
"the",
"data",
"from",
"the",
"array"
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Runtime/Collection/ArrayCollection.php#L109-L117 |
propelorm/Propel2 | src/Propel/Runtime/Collection/ArrayCollection.php | ArrayCollection.toArray | public function toArray($keyColumn = null, $usePrefix = false)
{
$ret = [];
foreach ($this as $key => $element) {
$key = null === $keyColumn ? $key : $element[$keyColumn];
$key = $usePrefix ? ($this->getModel() . '_' . $key) : $key;
$ret[$key] = $element;
... | php | public function toArray($keyColumn = null, $usePrefix = false)
{
$ret = [];
foreach ($this as $key => $element) {
$key = null === $keyColumn ? $key : $element[$keyColumn];
$key = $usePrefix ? ($this->getModel() . '_' . $key) : $key;
$ret[$key] = $element;
... | [
"public",
"function",
"toArray",
"(",
"$",
"keyColumn",
"=",
"null",
",",
"$",
"usePrefix",
"=",
"false",
")",
"{",
"$",
"ret",
"=",
"[",
"]",
";",
"foreach",
"(",
"$",
"this",
"as",
"$",
"key",
"=>",
"$",
"element",
")",
"{",
"$",
"key",
"=",
... | Get an array representation of the collection
This is not an alias for getData(), since it returns a copy of the data
@param string $keyColumn If null, the returned array uses an incremental index.
Otherwise, the array is indexed using the specified column
@param boolean $usePrefix If true, the returned array prefixe... | [
"Get",
"an",
"array",
"representation",
"of",
"the",
"collection",
"This",
"is",
"not",
"an",
"alias",
"for",
"getData",
"()",
"since",
"it",
"returns",
"a",
"copy",
"of",
"the",
"data"
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Runtime/Collection/ArrayCollection.php#L148-L158 |
propelorm/Propel2 | src/Propel/Runtime/Collection/ArrayCollection.php | ArrayCollection.getArrayCopy | public function getArrayCopy($keyColumn = null, $usePrefix = false)
{
if (null === $keyColumn && false === $usePrefix) {
return parent::getArrayCopy();
}
return $this->toArray($keyColumn, $usePrefix);
} | php | public function getArrayCopy($keyColumn = null, $usePrefix = false)
{
if (null === $keyColumn && false === $usePrefix) {
return parent::getArrayCopy();
}
return $this->toArray($keyColumn, $usePrefix);
} | [
"public",
"function",
"getArrayCopy",
"(",
"$",
"keyColumn",
"=",
"null",
",",
"$",
"usePrefix",
"=",
"false",
")",
"{",
"if",
"(",
"null",
"===",
"$",
"keyColumn",
"&&",
"false",
"===",
"$",
"usePrefix",
")",
"{",
"return",
"parent",
"::",
"getArrayCopy... | Synonym for toArray(), to provide a similar interface to PropelObjectCollection
@param string $keyColumn
@param boolean $usePrefix
@return array | [
"Synonym",
"for",
"toArray",
"()",
"to",
"provide",
"a",
"similar",
"interface",
"to",
"PropelObjectCollection"
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Runtime/Collection/ArrayCollection.php#L168-L175 |
propelorm/Propel2 | src/Propel/Runtime/Collection/ArrayCollection.php | ArrayCollection.toKeyValue | public function toKeyValue($keyColumn, $valueColumn)
{
$ret = [];
foreach ($this as $obj) {
$ret[$obj[$keyColumn]] = $obj[$valueColumn];
}
return $ret;
} | php | public function toKeyValue($keyColumn, $valueColumn)
{
$ret = [];
foreach ($this as $obj) {
$ret[$obj[$keyColumn]] = $obj[$valueColumn];
}
return $ret;
} | [
"public",
"function",
"toKeyValue",
"(",
"$",
"keyColumn",
",",
"$",
"valueColumn",
")",
"{",
"$",
"ret",
"=",
"[",
"]",
";",
"foreach",
"(",
"$",
"this",
"as",
"$",
"obj",
")",
"{",
"$",
"ret",
"[",
"$",
"obj",
"[",
"$",
"keyColumn",
"]",
"]",
... | Get an associative array representation of the collection
The first parameter specifies the column to be used for the key,
And the second for the value.
<code>
$res = $coll->toKeyValue('Id', 'Name');
</code>
@param string $keyColumn
@param string $valueColumn
@return array | [
"Get",
"an",
"associative",
"array",
"representation",
"of",
"the",
"collection",
"The",
"first",
"parameter",
"specifies",
"the",
"column",
"to",
"be",
"used",
"for",
"the",
"key",
"And",
"the",
"second",
"for",
"the",
"value",
".",
"<code",
">",
"$res",
... | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Runtime/Collection/ArrayCollection.php#L190-L198 |
propelorm/Propel2 | src/Propel/Runtime/Propel.php | Propel.getConnection | public static function getConnection($name = null, $mode = ServiceContainerInterface::CONNECTION_WRITE)
{
return self::$serviceContainer->getConnection($name, $mode);
} | php | public static function getConnection($name = null, $mode = ServiceContainerInterface::CONNECTION_WRITE)
{
return self::$serviceContainer->getConnection($name, $mode);
} | [
"public",
"static",
"function",
"getConnection",
"(",
"$",
"name",
"=",
"null",
",",
"$",
"mode",
"=",
"ServiceContainerInterface",
"::",
"CONNECTION_WRITE",
")",
"{",
"return",
"self",
"::",
"$",
"serviceContainer",
"->",
"getConnection",
"(",
"$",
"name",
",... | Get a connection for a given datasource.
If the connection has not been opened, open it using the related
connectionSettings. If the connection has already been opened, return it.
@param string $name The datasource name
@param string $mode The connection mode (this applies to replication systems).
@return \Propel\Ru... | [
"Get",
"a",
"connection",
"for",
"a",
"given",
"datasource",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Runtime/Propel.php#L202-L205 |
propelorm/Propel2 | src/Propel/Runtime/Propel.php | Propel.log | public static function log($message, $level = self::LOG_DEBUG)
{
$logger = self::$serviceContainer->getLogger();
switch ($level) {
case self::LOG_EMERG:
return $logger->emergency($message);
case self::LOG_ALERT:
return $logger->alert($message)... | php | public static function log($message, $level = self::LOG_DEBUG)
{
$logger = self::$serviceContainer->getLogger();
switch ($level) {
case self::LOG_EMERG:
return $logger->emergency($message);
case self::LOG_ALERT:
return $logger->alert($message)... | [
"public",
"static",
"function",
"log",
"(",
"$",
"message",
",",
"$",
"level",
"=",
"self",
"::",
"LOG_DEBUG",
")",
"{",
"$",
"logger",
"=",
"self",
"::",
"$",
"serviceContainer",
"->",
"getLogger",
"(",
")",
";",
"switch",
"(",
"$",
"level",
")",
"{... | Logs a message
If a logger has been configured, the logger will be used, otherwise the
logging message will be discarded without any further action
@param string $message The message that will be logged.
@param int $level The logging level.
@return boolean True if the message was logged successfully or no logger... | [
"Logs",
"a",
"message",
"If",
"a",
"logger",
"has",
"been",
"configured",
"the",
"logger",
"will",
"be",
"used",
"otherwise",
"the",
"logging",
"message",
"will",
"be",
"discarded",
"without",
"any",
"further",
"action"
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Runtime/Propel.php#L272-L294 |
propelorm/Propel2 | src/Propel/Runtime/ActiveQuery/ModelJoin.php | ModelJoin.getTableMap | public function getTableMap()
{
if (null === $this->tableMap && null !== $this->relationMap) {
$this->tableMap = $this->relationMap->getRightTable();
}
return $this->tableMap;
} | php | public function getTableMap()
{
if (null === $this->tableMap && null !== $this->relationMap) {
$this->tableMap = $this->relationMap->getRightTable();
}
return $this->tableMap;
} | [
"public",
"function",
"getTableMap",
"(",
")",
"{",
"if",
"(",
"null",
"===",
"$",
"this",
"->",
"tableMap",
"&&",
"null",
"!==",
"$",
"this",
"->",
"relationMap",
")",
"{",
"$",
"this",
"->",
"tableMap",
"=",
"$",
"this",
"->",
"relationMap",
"->",
... | Gets the right tableMap for this join
@return TableMap The table map | [
"Gets",
"the",
"right",
"tableMap",
"for",
"this",
"join"
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Runtime/ActiveQuery/ModelJoin.php#L102-L109 |
propelorm/Propel2 | src/Propel/Runtime/ActiveQuery/ModelJoin.php | ModelJoin.getObjectToRelate | public function getObjectToRelate($startObject)
{
if ($this->isPrimary()) {
return $startObject;
}
$previousJoin = $this->getPreviousJoin();
$previousObject = $previousJoin->getObjectToRelate($startObject);
$method = 'get' . $previousJoin->getRelationMap()->getNa... | php | public function getObjectToRelate($startObject)
{
if ($this->isPrimary()) {
return $startObject;
}
$previousJoin = $this->getPreviousJoin();
$previousObject = $previousJoin->getObjectToRelate($startObject);
$method = 'get' . $previousJoin->getRelationMap()->getNa... | [
"public",
"function",
"getObjectToRelate",
"(",
"$",
"startObject",
")",
"{",
"if",
"(",
"$",
"this",
"->",
"isPrimary",
"(",
")",
")",
"{",
"return",
"$",
"startObject",
";",
"}",
"$",
"previousJoin",
"=",
"$",
"this",
"->",
"getPreviousJoin",
"(",
")",... | This method returns the last related, but already hydrated object up until this join
Starting from $startObject and continuously calling the getters to get
to the base object for the current join.
This method only works if PreviousJoin has been defined,
which only happens when you provide dotted relations when calling... | [
"This",
"method",
"returns",
"the",
"last",
"related",
"but",
"already",
"hydrated",
"object",
"up",
"until",
"this",
"join",
"Starting",
"from",
"$startObject",
"and",
"continuously",
"calling",
"the",
"getters",
"to",
"get",
"to",
"the",
"base",
"object",
"f... | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Runtime/ActiveQuery/ModelJoin.php#L162-L173 |
propelorm/Propel2 | src/Propel/Generator/Behavior/Sortable/SortableBehaviorObjectBuilderModifier.php | SortableBehaviorObjectBuilderModifier.addScopeAccessors | protected function addScopeAccessors(&$script)
{
$script .= "
/**
* Wrap the getter for scope value
*
* @param boolean \$returnNulls If true and all scope values are null, this will return null instead of a array full with nulls
*
* @return mixed A array or a native type
*/
public function getScop... | php | protected function addScopeAccessors(&$script)
{
$script .= "
/**
* Wrap the getter for scope value
*
* @param boolean \$returnNulls If true and all scope values are null, this will return null instead of a array full with nulls
*
* @return mixed A array or a native type
*/
public function getScop... | [
"protected",
"function",
"addScopeAccessors",
"(",
"&",
"$",
"script",
")",
"{",
"$",
"script",
".=",
"\"\n/**\n * Wrap the getter for scope value\n *\n * @param boolean \\$returnNulls If true and all scope values are null, this will return null instead of a array full with nulls\n *\n * @re... | Get the wraps for getter/setter, if the scope column has not the default name
@return string | [
"Get",
"the",
"wraps",
"for",
"getter",
"/",
"setter",
"if",
"the",
"scope",
"column",
"has",
"not",
"the",
"default",
"name"
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Behavior/Sortable/SortableBehaviorObjectBuilderModifier.php#L286-L369 |
propelorm/Propel2 | src/Propel/Generator/Builder/Om/ClassTools.php | ClassTools.classname | public static function classname($qualifiedName)
{
if (false !== $pos = strrpos($qualifiedName, '.')) {
return substr($qualifiedName, $pos + 1); // start just after '.'
} elseif (false !== $pos = strrpos($qualifiedName, '\\')) {
return substr($qualifiedName, $pos + 1);
... | php | public static function classname($qualifiedName)
{
if (false !== $pos = strrpos($qualifiedName, '.')) {
return substr($qualifiedName, $pos + 1); // start just after '.'
} elseif (false !== $pos = strrpos($qualifiedName, '\\')) {
return substr($qualifiedName, $pos + 1);
... | [
"public",
"static",
"function",
"classname",
"(",
"$",
"qualifiedName",
")",
"{",
"if",
"(",
"false",
"!==",
"$",
"pos",
"=",
"strrpos",
"(",
"$",
"qualifiedName",
",",
"'.'",
")",
")",
"{",
"return",
"substr",
"(",
"$",
"qualifiedName",
",",
"$",
"pos... | Gets just classname, given a dot-path to class.
@param string $qualifiedName
@return string | [
"Gets",
"just",
"classname",
"given",
"a",
"dot",
"-",
"path",
"to",
"class",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Builder/Om/ClassTools.php#L28-L38 |
propelorm/Propel2 | src/Propel/Generator/Command/MigrationStatusCommand.php | MigrationStatusCommand.execute | protected function execute(InputInterface $input, OutputInterface $output)
{
$configOptions = [];
if ($this->hasInputOption('output-dir', $input)) {
$configOptions['propel']['paths']['migrationDir'] = $input->getOption('output-dir');
}
if ($this->hasInputOption(... | php | protected function execute(InputInterface $input, OutputInterface $output)
{
$configOptions = [];
if ($this->hasInputOption('output-dir', $input)) {
$configOptions['propel']['paths']['migrationDir'] = $input->getOption('output-dir');
}
if ($this->hasInputOption(... | [
"protected",
"function",
"execute",
"(",
"InputInterface",
"$",
"input",
",",
"OutputInterface",
"$",
"output",
")",
"{",
"$",
"configOptions",
"=",
"[",
"]",
";",
"if",
"(",
"$",
"this",
"->",
"hasInputOption",
"(",
"'output-dir'",
",",
"$",
"input",
")",... | {@inheritdoc} | [
"{"
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Command/MigrationStatusCommand.php#L43-L161 |
propelorm/Propel2 | src/Propel/Runtime/Adapter/Pdo/MssqlAdapter.php | MssqlAdapter.applyLimit | public function applyLimit(&$sql, $offset, $limit)
{
// make sure offset and limit are numeric
if (!is_numeric($offset) || !is_numeric($limit)) {
throw new InvalidArgumentException('MssqlAdapter::applyLimit() expects a number for argument 2 and 3');
}
// split the select... | php | public function applyLimit(&$sql, $offset, $limit)
{
// make sure offset and limit are numeric
if (!is_numeric($offset) || !is_numeric($limit)) {
throw new InvalidArgumentException('MssqlAdapter::applyLimit() expects a number for argument 2 and 3');
}
// split the select... | [
"public",
"function",
"applyLimit",
"(",
"&",
"$",
"sql",
",",
"$",
"offset",
",",
"$",
"limit",
")",
"{",
"// make sure offset and limit are numeric",
"if",
"(",
"!",
"is_numeric",
"(",
"$",
"offset",
")",
"||",
"!",
"is_numeric",
"(",
"$",
"limit",
")",
... | Simulated Limit/Offset
This rewrites the $sql query to apply the offset and limit.
some of the ORDER BY logic borrowed from Doctrine MsSqlPlatform
@see AdapterInterface::applyLimit()
@author Benjamin Runnels <kraven@kraven.org>
@param string $sql
@param integer $offset
@param integer $limit
@return void | [
"Simulated",
"Limit",
"/",
"Offset"
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Runtime/Adapter/Pdo/MssqlAdapter.php#L135-L273 |
propelorm/Propel2 | src/Propel/Generator/Util/QuickBuilder.php | QuickBuilder.getPlatform | public function getPlatform()
{
if (null === $this->platform) {
$this->platform = new SqlitePlatform();
}
$this->platform->setIdentifierQuoting($this->identifierQuoting);
return $this->platform;
} | php | public function getPlatform()
{
if (null === $this->platform) {
$this->platform = new SqlitePlatform();
}
$this->platform->setIdentifierQuoting($this->identifierQuoting);
return $this->platform;
} | [
"public",
"function",
"getPlatform",
"(",
")",
"{",
"if",
"(",
"null",
"===",
"$",
"this",
"->",
"platform",
")",
"{",
"$",
"this",
"->",
"platform",
"=",
"new",
"SqlitePlatform",
"(",
")",
";",
"}",
"$",
"this",
"->",
"platform",
"->",
"setIdentifierQ... | Getter for the platform property
@return PlatformInterface | [
"Getter",
"for",
"the",
"platform",
"property"
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Util/QuickBuilder.php#L140-L149 |
propelorm/Propel2 | src/Propel/Generator/Util/QuickBuilder.php | QuickBuilder.forceNamespace | protected function forceNamespace($code)
{
if (0 === preg_match('/\nnamespace/', $code)) {
$use = array_filter(explode(PHP_EOL, $code), function($string) {
return substr($string, 0, 5) === 'use \\';
});
$code = str_replace($use, '', $code);
r... | php | protected function forceNamespace($code)
{
if (0 === preg_match('/\nnamespace/', $code)) {
$use = array_filter(explode(PHP_EOL, $code), function($string) {
return substr($string, 0, 5) === 'use \\';
});
$code = str_replace($use, '', $code);
r... | [
"protected",
"function",
"forceNamespace",
"(",
"$",
"code",
")",
"{",
"if",
"(",
"0",
"===",
"preg_match",
"(",
"'/\\nnamespace/'",
",",
"$",
"code",
")",
")",
"{",
"$",
"use",
"=",
"array_filter",
"(",
"explode",
"(",
"PHP_EOL",
",",
"$",
"code",
")"... | Prevent generated class without namespace to fail.
@param string $code
@return string | [
"Prevent",
"generated",
"class",
"without",
"namespace",
"to",
"fail",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Util/QuickBuilder.php#L486-L499 |
propelorm/Propel2 | src/Propel/Generator/Reverse/MssqlSchemaParser.php | MssqlSchemaParser.addIndexes | protected function addIndexes(Table $table)
{
$dataFetcher = $this->dbh->query("sp_indexes_rowset '" . $table->getName() . "'");
$dataFetcher->setStyle(\PDO::FETCH_ASSOC);
$indexes = [];
foreach ($dataFetcher as $row) {
$colName = $this->cleanDelimitedIdentifiers($row['C... | php | protected function addIndexes(Table $table)
{
$dataFetcher = $this->dbh->query("sp_indexes_rowset '" . $table->getName() . "'");
$dataFetcher->setStyle(\PDO::FETCH_ASSOC);
$indexes = [];
foreach ($dataFetcher as $row) {
$colName = $this->cleanDelimitedIdentifiers($row['C... | [
"protected",
"function",
"addIndexes",
"(",
"Table",
"$",
"table",
")",
"{",
"$",
"dataFetcher",
"=",
"$",
"this",
"->",
"dbh",
"->",
"query",
"(",
"\"sp_indexes_rowset '\"",
".",
"$",
"table",
"->",
"getName",
"(",
")",
".",
"\"'\"",
")",
";",
"$",
"d... | Load indexes for this table | [
"Load",
"indexes",
"for",
"this",
"table"
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Reverse/MssqlSchemaParser.php#L206-L245 |
propelorm/Propel2 | src/Propel/Generator/Reverse/MssqlSchemaParser.php | MssqlSchemaParser.addPrimaryKey | protected function addPrimaryKey(Table $table)
{
$dataFetcher = $this->dbh->query("SELECT COLUMN_NAME
FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS
INNER JOIN INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE ON
INFORMATION_SCHEMA.TABLE_CONSTRAINTS.CONSTRAINT_NAME = INFORMATION_SCHE... | php | protected function addPrimaryKey(Table $table)
{
$dataFetcher = $this->dbh->query("SELECT COLUMN_NAME
FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS
INNER JOIN INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE ON
INFORMATION_SCHEMA.TABLE_CONSTRAINTS.CONSTRAINT_NAME = INFORMATION_SCHE... | [
"protected",
"function",
"addPrimaryKey",
"(",
"Table",
"$",
"table",
")",
"{",
"$",
"dataFetcher",
"=",
"$",
"this",
"->",
"dbh",
"->",
"query",
"(",
"\"SELECT COLUMN_NAME\n FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS\n INNER JOIN INFORMATION_SCHEMA.CONSTRA... | Loads the primary key for this table. | [
"Loads",
"the",
"primary",
"key",
"for",
"this",
"table",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Reverse/MssqlSchemaParser.php#L250-L265 |
propelorm/Propel2 | src/Propel/Generator/Reverse/MysqlSchemaParser.php | MysqlSchemaParser.addColumns | protected function addColumns(Table $table)
{
$stmt = $this->dbh->query(sprintf('SHOW COLUMNS FROM %s', $this->getPlatform()->doQuoting($table->getName())));
while ($row = $stmt->fetch(\PDO::FETCH_ASSOC)) {
$column = $this->getColumnFromRow($row, $table);
$table->addColumn($... | php | protected function addColumns(Table $table)
{
$stmt = $this->dbh->query(sprintf('SHOW COLUMNS FROM %s', $this->getPlatform()->doQuoting($table->getName())));
while ($row = $stmt->fetch(\PDO::FETCH_ASSOC)) {
$column = $this->getColumnFromRow($row, $table);
$table->addColumn($... | [
"protected",
"function",
"addColumns",
"(",
"Table",
"$",
"table",
")",
"{",
"$",
"stmt",
"=",
"$",
"this",
"->",
"dbh",
"->",
"query",
"(",
"sprintf",
"(",
"'SHOW COLUMNS FROM %s'",
",",
"$",
"this",
"->",
"getPlatform",
"(",
")",
"->",
"doQuoting",
"("... | Adds Columns to the specified table.
@param Table $table The Table model class to add columns to. | [
"Adds",
"Columns",
"to",
"the",
"specified",
"table",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Reverse/MysqlSchemaParser.php#L162-L170 |
propelorm/Propel2 | src/Propel/Generator/Reverse/MysqlSchemaParser.php | MysqlSchemaParser.addForeignKeys | protected function addForeignKeys(Table $table)
{
$database = $table->getDatabase();
$dataFetcher = $this->dbh->query(sprintf('SHOW CREATE TABLE %s', $this->getPlatform()->doQuoting($table->getName())));
$row = $dataFetcher->fetch();
$foreignKeys = []; // local store to avoid dupli... | php | protected function addForeignKeys(Table $table)
{
$database = $table->getDatabase();
$dataFetcher = $this->dbh->query(sprintf('SHOW CREATE TABLE %s', $this->getPlatform()->doQuoting($table->getName())));
$row = $dataFetcher->fetch();
$foreignKeys = []; // local store to avoid dupli... | [
"protected",
"function",
"addForeignKeys",
"(",
"Table",
"$",
"table",
")",
"{",
"$",
"database",
"=",
"$",
"table",
"->",
"getDatabase",
"(",
")",
";",
"$",
"dataFetcher",
"=",
"$",
"this",
"->",
"dbh",
"->",
"query",
"(",
"sprintf",
"(",
"'SHOW CREATE ... | Load foreign keys for this table. | [
"Load",
"foreign",
"keys",
"for",
"this",
"table",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Reverse/MysqlSchemaParser.php#L276-L367 |
propelorm/Propel2 | src/Propel/Generator/Reverse/MysqlSchemaParser.php | MysqlSchemaParser.addIndexes | protected function addIndexes(Table $table)
{
$stmt = $this->dbh->query(sprintf('SHOW INDEX FROM %s', $this->getPlatform()->doQuoting($table->getName())));
// Loop through the returned results, grouping the same key_name together
// adding each column for that key.
/** @var $indexe... | php | protected function addIndexes(Table $table)
{
$stmt = $this->dbh->query(sprintf('SHOW INDEX FROM %s', $this->getPlatform()->doQuoting($table->getName())));
// Loop through the returned results, grouping the same key_name together
// adding each column for that key.
/** @var $indexe... | [
"protected",
"function",
"addIndexes",
"(",
"Table",
"$",
"table",
")",
"{",
"$",
"stmt",
"=",
"$",
"this",
"->",
"dbh",
"->",
"query",
"(",
"sprintf",
"(",
"'SHOW INDEX FROM %s'",
",",
"$",
"this",
"->",
"getPlatform",
"(",
")",
"->",
"doQuoting",
"(",
... | Load indexes for this table | [
"Load",
"indexes",
"for",
"this",
"table"
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Reverse/MysqlSchemaParser.php#L372-L417 |
propelorm/Propel2 | src/Propel/Generator/Reverse/MysqlSchemaParser.php | MysqlSchemaParser.addTableVendorInfo | protected function addTableVendorInfo(Table $table)
{
$stmt = $this->dbh->query("SHOW TABLE STATUS LIKE '" . $table->getName() . "'");
$row = $stmt->fetch(\PDO::FETCH_ASSOC);
if (!$this->addVendorInfo) {
// since we depend on `Engine` in the MysqlPlatform, we always have to extra... | php | protected function addTableVendorInfo(Table $table)
{
$stmt = $this->dbh->query("SHOW TABLE STATUS LIKE '" . $table->getName() . "'");
$row = $stmt->fetch(\PDO::FETCH_ASSOC);
if (!$this->addVendorInfo) {
// since we depend on `Engine` in the MysqlPlatform, we always have to extra... | [
"protected",
"function",
"addTableVendorInfo",
"(",
"Table",
"$",
"table",
")",
"{",
"$",
"stmt",
"=",
"$",
"this",
"->",
"dbh",
"->",
"query",
"(",
"\"SHOW TABLE STATUS LIKE '\"",
".",
"$",
"table",
"->",
"getName",
"(",
")",
".",
"\"'\"",
")",
";",
"$"... | Adds vendor-specific info for table.
@param Table $table | [
"Adds",
"vendor",
"-",
"specific",
"info",
"for",
"table",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Reverse/MysqlSchemaParser.php#L443-L453 |
propelorm/Propel2 | src/Propel/Generator/Reverse/SqliteSchemaParser.php | SqliteSchemaParser.addColumns | protected function addColumns(Table $table)
{
$tableName = $table->getName();
// var_dump("PRAGMA table_info('$tableName') //");
$stmt = $this->dbh->query("PRAGMA table_info('$tableName')");
while ($row = $stmt->fetch(\PDO::FETCH_ASSOC)) {
$name = $row['name'];
... | php | protected function addColumns(Table $table)
{
$tableName = $table->getName();
// var_dump("PRAGMA table_info('$tableName') //");
$stmt = $this->dbh->query("PRAGMA table_info('$tableName')");
while ($row = $stmt->fetch(\PDO::FETCH_ASSOC)) {
$name = $row['name'];
... | [
"protected",
"function",
"addColumns",
"(",
"Table",
"$",
"table",
")",
"{",
"$",
"tableName",
"=",
"$",
"table",
"->",
"getName",
"(",
")",
";",
"// var_dump(\"PRAGMA table_info('$tableName') //\");",
"$",
"stmt",
"=",
"$",
"this",
"->",
"dbh",
"->",
"... | Adds Columns to the specified table.
@param Table $table The Table model class to add columns to. | [
"Adds",
"Columns",
"to",
"the",
"specified",
"table",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Reverse/SqliteSchemaParser.php#L174-L254 |
propelorm/Propel2 | src/Propel/Generator/Reverse/SqliteSchemaParser.php | SqliteSchemaParser.addIndexes | protected function addIndexes(Table $table)
{
$stmt = $this->dbh->query('PRAGMA index_list("' . $table->getName() . '")');
while ($row = $stmt->fetch(\PDO::FETCH_ASSOC)) {
$name = $row['name'];
$internalName = $name;
if (0 === strpos($name, 'sqlite_autoindex')) ... | php | protected function addIndexes(Table $table)
{
$stmt = $this->dbh->query('PRAGMA index_list("' . $table->getName() . '")');
while ($row = $stmt->fetch(\PDO::FETCH_ASSOC)) {
$name = $row['name'];
$internalName = $name;
if (0 === strpos($name, 'sqlite_autoindex')) ... | [
"protected",
"function",
"addIndexes",
"(",
"Table",
"$",
"table",
")",
"{",
"$",
"stmt",
"=",
"$",
"this",
"->",
"dbh",
"->",
"query",
"(",
"'PRAGMA index_list(\"'",
".",
"$",
"table",
"->",
"getName",
"(",
")",
".",
"'\")'",
")",
";",
"while",
"(",
... | Load indexes for this table | [
"Load",
"indexes",
"for",
"this",
"table"
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Reverse/SqliteSchemaParser.php#L302-L335 |
propelorm/Propel2 | src/Propel/Runtime/ActiveQuery/Criterion/InCriterion.php | InCriterion.appendPsForUniqueClauseTo | protected function appendPsForUniqueClauseTo(&$sb, array &$params)
{
$bindParams = [];
$index = count($params); // to avoid counting the number of parameters for each element in the array
$values = ($this->value instanceof \Traversable) ? iterator_to_array($this->value) : (array) $this->valu... | php | protected function appendPsForUniqueClauseTo(&$sb, array &$params)
{
$bindParams = [];
$index = count($params); // to avoid counting the number of parameters for each element in the array
$values = ($this->value instanceof \Traversable) ? iterator_to_array($this->value) : (array) $this->valu... | [
"protected",
"function",
"appendPsForUniqueClauseTo",
"(",
"&",
"$",
"sb",
",",
"array",
"&",
"$",
"params",
")",
"{",
"$",
"bindParams",
"=",
"[",
"]",
";",
"$",
"index",
"=",
"count",
"(",
"$",
"params",
")",
";",
"// to avoid counting the number of parame... | Appends a Prepared Statement representation of the Criterion onto the buffer
@param string &$sb The string that will receive the Prepared Statement
@param array $params A list to which Prepared Statement parameters will be appended | [
"Appends",
"a",
"Prepared",
"Statement",
"representation",
"of",
"the",
"Criterion",
"onto",
"the",
"buffer"
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Runtime/ActiveQuery/Criterion/InCriterion.php#L40-L56 |
propelorm/Propel2 | src/Propel/Generator/Behavior/AggregateColumn/AggregateColumnRelationBehavior.php | AggregateColumnRelationBehavior.objectAttributes | public function objectAttributes($builder)
{
$relationName = $this->getRelationName($builder);
$relatedClass = $builder->getClassNameFromBuilder($builder->getNewStubObjectBuilder($this->getForeignTable()));
$aggregateName = $this->getParameter('aggregate_name');
return "/**
* @var ... | php | public function objectAttributes($builder)
{
$relationName = $this->getRelationName($builder);
$relatedClass = $builder->getClassNameFromBuilder($builder->getNewStubObjectBuilder($this->getForeignTable()));
$aggregateName = $this->getParameter('aggregate_name');
return "/**
* @var ... | [
"public",
"function",
"objectAttributes",
"(",
"$",
"builder",
")",
"{",
"$",
"relationName",
"=",
"$",
"this",
"->",
"getRelationName",
"(",
"$",
"builder",
")",
";",
"$",
"relatedClass",
"=",
"$",
"builder",
"->",
"getClassNameFromBuilder",
"(",
"$",
"buil... | which already has a hook | [
"which",
"already",
"has",
"a",
"hook"
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Generator/Behavior/AggregateColumn/AggregateColumnRelationBehavior.php#L45-L56 |
propelorm/Propel2 | src/Propel/Common/Config/Loader/FileLoader.php | FileLoader.resolveParams | public function resolveParams(array $configuration)
{
if ($this->resolved) {
return;
}
$this->config = $configuration;
$parameters = [];
foreach ($configuration as $key => $value) {
$key = $this->resolveValue($key);
$value = $this->resolve... | php | public function resolveParams(array $configuration)
{
if ($this->resolved) {
return;
}
$this->config = $configuration;
$parameters = [];
foreach ($configuration as $key => $value) {
$key = $this->resolveValue($key);
$value = $this->resolve... | [
"public",
"function",
"resolveParams",
"(",
"array",
"$",
"configuration",
")",
"{",
"if",
"(",
"$",
"this",
"->",
"resolved",
")",
"{",
"return",
";",
"}",
"$",
"this",
"->",
"config",
"=",
"$",
"configuration",
";",
"$",
"parameters",
"=",
"[",
"]",
... | Replaces parameter placeholders (%name%) by their values for all parameters.
@param array $configuration The configuration array to resolve | [
"Replaces",
"parameter",
"placeholders",
"(",
"%name%",
")",
"by",
"their",
"values",
"for",
"all",
"parameters",
"."
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Common/Config/Loader/FileLoader.php#L65-L82 |
propelorm/Propel2 | src/Propel/Common/Config/Loader/FileLoader.php | FileLoader.getPath | protected function getPath($file)
{
$path = $this->locator->locate($file);
if (!is_readable($path)) {
throw new InputOutputException("You don't have permissions to access configuration file $file.");
}
return $path;
} | php | protected function getPath($file)
{
$path = $this->locator->locate($file);
if (!is_readable($path)) {
throw new InputOutputException("You don't have permissions to access configuration file $file.");
}
return $path;
} | [
"protected",
"function",
"getPath",
"(",
"$",
"file",
")",
"{",
"$",
"path",
"=",
"$",
"this",
"->",
"locator",
"->",
"locate",
"(",
"$",
"file",
")",
";",
"if",
"(",
"!",
"is_readable",
"(",
"$",
"path",
")",
")",
"{",
"throw",
"new",
"InputOutput... | Get the pathof a given resource
@param mixed $file The resource
@return array|string
@throws \InvalidArgumentException If the file is not found
@throws \Propel\Common\Config\Exception\InputOutputException If the path isnot readable | [
"Get",
"the",
"pathof",
"a",
"given",
"resource"
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Common/Config/Loader/FileLoader.php#L93-L102 |
propelorm/Propel2 | src/Propel/Common/Config/Loader/FileLoader.php | FileLoader.checkSupports | protected function checkSupports($ext, $resource)
{
if (!is_string($resource)) {
return false;
}
$info = pathinfo($resource);
$extension = $info['extension'];
if ('dist' === $extension) {
$extension = pathinfo($info['filename'], PATHINFO_EXTENSION);
... | php | protected function checkSupports($ext, $resource)
{
if (!is_string($resource)) {
return false;
}
$info = pathinfo($resource);
$extension = $info['extension'];
if ('dist' === $extension) {
$extension = pathinfo($info['filename'], PATHINFO_EXTENSION);
... | [
"protected",
"function",
"checkSupports",
"(",
"$",
"ext",
",",
"$",
"resource",
")",
"{",
"if",
"(",
"!",
"is_string",
"(",
"$",
"resource",
")",
")",
"{",
"return",
"false",
";",
"}",
"$",
"info",
"=",
"pathinfo",
"(",
"$",
"resource",
")",
";",
... | Check if a resource has a given extension
@param $ext mixed An extension or an arrayof extensions
@param $resource string A resource | [
"Check",
"if",
"a",
"resource",
"has",
"a",
"given",
"extension"
] | train | https://github.com/propelorm/Propel2/blob/6c4996fc130c7555d82d9dca04396c6f3eeef306/src/Propel/Common/Config/Loader/FileLoader.php#L110-L141 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.