Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Optimized method name. ref #745

  • Loading branch information...
commit 2302f06e5ca1424620dca5636229d8cab8583781 1 parent 6c9848e
@marcj marcj authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/Propel/Generator/Builder/Om/ObjectBuilder.php
View
12 src/Propel/Generator/Builder/Om/ObjectBuilder.php
@@ -4337,7 +4337,7 @@ protected function addCrossFKMethods(&$script)
$this->addCrossFKClear($script, $crossFKs);
$this->addCrossFKInit($script, $crossFKs);
$this->addCrossFKisLoaded($script, $crossFKs);
- $this->addCrossFKGetQuery($script, $crossFKs);
+ $this->addCrossFKCreateQuery($script, $crossFKs);
$this->addCrossFKGet($script, $crossFKs);
$this->addCrossFKSet($script, $crossFKs);
$this->addCrossFKCount($script, $crossFKs);
@@ -4509,7 +4509,7 @@ public function is{$relCol}Loaded()
}
}
- protected function addCrossFKGetQuery(&$script, CrossForeignKeys $crossFKs)
+ protected function addCrossFKCreateQuery(&$script, CrossForeignKeys $crossFKs)
{
if (1 <= count($crossFKs->getCrossForeignKeys()) && !$crossFKs->getUnclassifiedPrimaryKeys()) {
return;
@@ -4542,7 +4542,7 @@ protected function addCrossFKGetQuery(&$script, CrossForeignKeys $crossFKs)
*
* @return $relatedQueryClassName
*/
- public function get{$firstFkName}Query($signature, Criteria \$criteria = null)
+ public function create{$firstFkName}Query($signature, Criteria \$criteria = null)
{
\$criteria = $relatedQueryClassName::create(\$criteria)
->filterBy{$selfRelationName}(\$this);
@@ -4715,7 +4715,7 @@ public function get{$relatedName}(\$criteria = null, ConnectionInterface \$con =
*/
public function get{$firstFkName}($signature, Criteria \$criteria = null, ConnectionInterface \$con = null)
{
- return \$this->get{$firstFkName}Query($shortSignature, \$criteria)->find(\$con);
+ return \$this->create{$firstFkName}Query($shortSignature, \$criteria)->find(\$con);
}
";
return;
@@ -4948,11 +4948,11 @@ public function count{$relatedName}(Criteria \$criteria = null, \$distinct = fal
* @param Criteria \$criteria
* @param ConnectionInterface \$con
*
- * @return {$relatedObjectClassName}[]|ObjectCollection
+ * @return integer
*/
public function count{$firstFkName}($signature, Criteria \$criteria = null, ConnectionInterface \$con = null)
{
- return \$this->get{$firstFkName}Query($shortSignature, \$criteria)->count(\$con);
+ return \$this->create{$firstFkName}Query($shortSignature, \$criteria)->count(\$con);
}
";
}
Please sign in to comment.
Something went wrong with that request. Please try again.