Skip to content

Commit

Permalink
Remove deprecated (#1892)
Browse files Browse the repository at this point in the history
* added datetime type

* enable TIMESTAMP type in mysql

* remove deprecated addSetPrimaryKeyNoPK()
  • Loading branch information
mringler committed Aug 9, 2022
1 parent e82ef94 commit 34b713e
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions src/Propel/Generator/Builder/Om/ObjectBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -3914,9 +3914,6 @@ protected function addSetPrimaryKey(string &$script): void
$this->addSetPrimaryKeySinglePK($script);
} elseif (count($pkeys) > 1) {
$this->addSetPrimaryKeyMultiPK($script);
} else {
// no primary key -- this is deprecated, since we don't *need* this method anymore
$this->addSetPrimaryKeyNoPK($script);
}
}

Expand Down Expand Up @@ -3977,37 +3974,6 @@ public function setPrimaryKey(array \$keys): void
";
}

/**
* Adds the setPrimaryKey() method for objects that have no primary key.
* This "feature" is deprecated, since the setPrimaryKey() method is not required
* by the Persistent interface (or used by the templates). Hence, this method is also
* deprecated.
*
* @deprecated Not needed anymore.
*
* @param string $script The script will be modified in this method.
*
* @return void
*/
protected function addSetPrimaryKeyNoPK(string &$script): void
{
$script .= "
/**
* Dummy primary key setter.
*
* This function only exists to preserve backwards compatibility. It is no longer
* needed or required by the Persistent interface. It will be removed in next BC-breaking
* release of Propel.
*
* @deprecated
*/
public function setPrimaryKey(\$pk): void
{
// do nothing, because this object doesn't have any primary keys
}
";
}

/**
* Adds the isPrimaryKeyNull() method
*
Expand Down

0 comments on commit 34b713e

Please sign in to comment.