Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Propel/Generator/Builder/Om/QueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)";
}
Expand Down
4 changes: 2 additions & 2 deletions src/Propel/Generator/Model/Column.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Propel/Generator/Model/PropelTypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down
2 changes: 1 addition & 1 deletion src/Propel/Generator/Platform/MysqlPlatform.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);",
Expand Down
2 changes: 1 addition & 1 deletion tests/Propel/Tests/Generator/Model/ColumnTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down