Skip to content

Commit

Permalink
Add column alias
Browse files Browse the repository at this point in the history
  • Loading branch information
dneukirchen committed Nov 6, 2018
1 parent 75663ad commit 750732c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libraries/src/Table/Extension.php
Expand Up @@ -30,6 +30,9 @@ class Extension extends Table
public function __construct($db)
{
parent::__construct('#__extensions', 'extension_id', $db);

// Set the alias since the column is called enabled
$this->setColumnAlias('published', 'enabled');
}

/**
Expand Down

0 comments on commit 750732c

Please sign in to comment.