Skip to content

Commit 0cfea4e

Browse files
authored
Add more types were possible, fix docblocks. (#1858)
* Add more types were possible, fix docblocks. * Adjust templates method signatures. Fix up constants.
1 parent 2c7a2f7 commit 0cfea4e

File tree

52 files changed

+633
-611
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+633
-611
lines changed

src/Propel/Generator/Behavior/ConcreteInheritance/ConcreteInheritanceBehavior.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ protected function addObjectGetParentOrCreate(string &$script): void
330330
/**
331331
* Get or Create the parent " . $parentClass . " object of the current object
332332
*
333-
* @return " . $parentClass . " The parent object
333+
* @return " . $parentClass . " The parent object
334334
*/
335335
public function getParentOrCreate(?ConnectionInterface \$con = null)
336336
{
@@ -372,7 +372,7 @@ protected function addObjectGetSyncParent(string &$script): void
372372
* Create or Update the parent " . $parentTable->getPhpName() . " object
373373
* And return its primary key
374374
*
375-
* @return " . $cptype . " The primary key of the parent object
375+
* @return " . $cptype . " The primary key of the parent object
376376
*/
377377
public function getSyncParent(?ConnectionInterface \$con = null)
378378
{

src/Propel/Generator/Behavior/ConcreteInheritance/ConcreteInheritanceParentBehavior.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ protected function addHasChildObject(string &$script): void
8484
/**
8585
* Whether this object is the parent of a child object
8686
*
87-
* @return bool
87+
* @return bool
8888
*/
8989
public function hasChildObject(): bool
9090
{

src/Propel/Generator/Behavior/Delegate/DelegateBehavior.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -338,21 +338,23 @@ public function queryMethods(QueryBuilder $builder): string
338338
*
339339
* @see Criteria::add()
340340
*
341-
* @param string \$column A string representing thecolumn phpName, e.g. 'AuthorId'
342-
* @param mixed \$value A value for the condition
341+
* @param string \$column A string representing the column phpName, e.g. 'AuthorId'
342+
* @param mixed \$value A value for the condition
343343
* @param string \$comparison What to use for the column comparison, defaults to Criteria::EQUAL
344344
*
345-
* @return \$this|ModelCriteria The current object, for fluid interface
345+
* @return \$this The current object, for fluid interface
346346
*/
347347
public function filterBy(\$column, \$value, \$comparison = Criteria::EQUAL)
348348
{
349349
if (isset(\$this->delegatedFields[\$column])) {
350350
\$methodUse = \"use{\$this->delegatedFields[\$column]}Query\";
351351
352-
return \$this->{\$methodUse}()->filterBy(\$column, \$value, \$comparison)->endUse();
352+
\$this->{\$methodUse}()->filterBy(\$column, \$value, \$comparison)->endUse();
353353
} else {
354-
return \$this->add(\$this->getRealColumnName(\$column), \$value, \$comparison);
354+
\$this->add(\$this->getRealColumnName(\$column), \$value, \$comparison);
355355
}
356+
357+
return \$this;
356358
}
357359
";
358360
}

src/Propel/Generator/Behavior/I18n/I18nBehaviorObjectBuilderModifier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ protected function addTranslatedColumnSetter(Column $column): string
269269
$objectBuilder->addMutatorOpenOpen($functionStatement, $column);
270270
}
271271
$comment = preg_replace('/^\t/m', '', $comment);
272-
$comment = str_replace('@return $this|' . $i18nTablePhpName, '@return $this|' . $tablePhpName, $comment);
272+
$comment = str_replace('@return $this|' . $i18nTablePhpName, '@return $this|' . $tablePhpName, $comment);
273273
$functionStatement = preg_replace('/^\t/m', '', $functionStatement);
274274
preg_match_all('/\$[a-z]+/i', $functionStatement, $params);
275275

0 commit comments

Comments
 (0)