Welcome Guest, Not a member yet? Register   Sign In
Problem with Model()->find() and Model()->findAll()
#2

Model already has $table and $primaryKey properties. Shouldn't your model have a constructor, where it sets those?

Code:
public function __construct() {
  parent::__construct();
  $this->table = 'users';
}

You don't initialize the $DBGroup property, which might affect your outcome.
Reply


Messages In This Thread
RE: Problem with Model()->find() and Model()->findAll() - by ciadmin - 10-06-2019, 01:01 PM



Theme © iAndrew 2016 - Forum software by © MyBB