Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Made Model::getPk() and Model::getTable() static (see #5128)
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Dec 21, 2012
1 parent d5b01be commit 42a6660
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions system/docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Contao Open Source CMS Changelog
Version 3.0.2 (201X-XX-XX)
--------------------------

### Fixed
Made `Model::getPk()` and `Model::getTable()` static (see #5128).

### Fixed
Do not move resources in the file manager if the targets exist. Otherwise the
database might get out of sync with the file system (see #5145).
Expand Down
4 changes: 2 additions & 2 deletions system/modules/core/library/Contao/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public function __isset($strKey)
*
* @return string The primary key
*/
public function getPk()
public static function getPk()
{
return static::$strPk;
}
Expand All @@ -181,7 +181,7 @@ public function getPk()
*
* @return string The table name
*/
public function getTable()
public static function getTable()
{
return static::$strTable;
}
Expand Down

0 comments on commit 42a6660

Please sign in to comment.