Replace static::TABLE by a new abstract method

This commit is contained in:
Frederic Guillot
2016-05-11 18:45:54 -04:00
parent 3387ea3dbe
commit 5479e38b60
4 changed files with 42 additions and 15 deletions

View File

@@ -11,11 +11,16 @@ namespace Kanboard\Model;
class UserMetadata extends Metadata
{
/**
* SQL table name
* Get the table
*
* @var string
* @abstract
* @access protected
* @return string
*/
const TABLE = 'user_has_metadata';
protected function getTable()
{
return 'user_has_metadata';
}
/**
* Define the entity key