Fixing issues related to LIMIT in Base Store files.
This commit is contained in:
parent
9d2005d8e8
commit
e80f8ffaae
5 changed files with 63 additions and 182 deletions
|
|
@ -20,24 +20,11 @@ class UserStoreBase extends Store
|
|||
protected $modelName = '\PHPCI\Model\User';
|
||||
protected $primaryKey = 'id';
|
||||
|
||||
/**
|
||||
* Get a User by primary key.
|
||||
* @param mixed $value Primary key.
|
||||
* @param string $useConnection Connection to use (read / write)
|
||||
* @return \PHPCI\Model\User|null
|
||||
*/
|
||||
public function getByPrimaryKey($value, $useConnection = 'read')
|
||||
{
|
||||
return $this->getById($value, $useConnection);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a User by Id.
|
||||
* @param mixed $value.
|
||||
* @param string $useConnection Connection to use (read / write)
|
||||
* @throws \b8\Exception\HttpException
|
||||
* @return \PHPCI\Model\User|null;
|
||||
*/
|
||||
public function getById($value, $useConnection = 'read')
|
||||
{
|
||||
if (is_null($value)) {
|
||||
|
|
@ -57,13 +44,6 @@ class UserStoreBase extends Store
|
|||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a User by Email.
|
||||
* @param mixed $value.
|
||||
* @param string $useConnection Connection to use (read / write)
|
||||
* @throws \b8\Exception\HttpException
|
||||
* @return \PHPCI\Model\User|null;
|
||||
*/
|
||||
public function getByEmail($value, $useConnection = 'read')
|
||||
{
|
||||
if (is_null($value)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue