diff --git a/src/Propel/Generator/Builder/Om/QueryBuilder.php b/src/Propel/Generator/Builder/Om/QueryBuilder.php index a64e486f6e..b19edcab86 100644 --- a/src/Propel/Generator/Builder/Om/QueryBuilder.php +++ b/src/Propel/Generator/Builder/Om/QueryBuilder.php @@ -1378,7 +1378,7 @@ public function filterBy$relationName($objectName, ?string \$comparison = null) ->addUsingAlias(" . $this->getColumnConstant($localValueOrColumn) . ", $rightValue, \$comparison)"; } else { $leftValue = var_export($localValueOrColumn, true); - $bindingType = $foreignColumn->getPDOType(); + $bindingType = $foreignColumn->getPdoType(); $script .= " ->where(\"$leftValue = ?\", $rightValue, $bindingType)"; } diff --git a/src/Propel/Generator/Model/Column.php b/src/Propel/Generator/Model/Column.php index f8e7b52776..79c2a274e8 100644 --- a/src/Propel/Generator/Model/Column.php +++ b/src/Propel/Generator/Model/Column.php @@ -1253,9 +1253,9 @@ public function getSqlType(): string * * @return int */ - public function getPDOType(): int + public function getPdoType(): int { - return PropelTypes::getPDOType($this->getType()); + return PropelTypes::getPdoType($this->getType()); } /** diff --git a/src/Propel/Generator/Model/PropelTypes.php b/src/Propel/Generator/Model/PropelTypes.php index 5431c9076a..0bc1769260 100644 --- a/src/Propel/Generator/Model/PropelTypes.php +++ b/src/Propel/Generator/Model/PropelTypes.php @@ -520,7 +520,7 @@ public static function getPhpNative(string $mappingType): string * * @return int */ - public static function getPDOType(string $type): int + public static function getPdoType(string $type): int { return self::$mappingTypeToPDOTypeMap[$type]; } diff --git a/src/Propel/Generator/Platform/MysqlPlatform.php b/src/Propel/Generator/Platform/MysqlPlatform.php index 674da56670..a798aea352 100644 --- a/src/Propel/Generator/Platform/MysqlPlatform.php +++ b/src/Propel/Generator/Platform/MysqlPlatform.php @@ -1047,7 +1047,7 @@ public function getColumnBindingPHP(Column $column, string $identifier, string $ { // FIXME - This is a temporary hack to get around apparent bugs w/ PDO+MYSQL // See http://pecl.php.net/bugs/bug.php?id=9919 - if ($column->getPDOType() === PDO::PARAM_BOOL) { + if ($column->getPdoType() === PDO::PARAM_BOOL) { return sprintf( " %s\$stmt->bindValue(%s, (int) %s, PDO::PARAM_INT);", diff --git a/tests/Propel/Tests/Generator/Model/ColumnTest.php b/tests/Propel/Tests/Generator/Model/ColumnTest.php index db3bfb6634..c05f620098 100644 --- a/tests/Propel/Tests/Generator/Model/ColumnTest.php +++ b/tests/Propel/Tests/Generator/Model/ColumnTest.php @@ -442,7 +442,7 @@ public function testGetPdoType($mappingType, $pdoType) $column->setDomain($domain); $column->setType($mappingType); - $this->assertSame($pdoType, $column->getPDOType()); + $this->assertSame($pdoType, $column->getPdoType()); } public function providePdoTypes()