/** * Refresh the User and their associated Groups from the DB. * * @see DatabaseInterface */ public function fresh() { // Update table and column info, in case it has changed $this->_table = static::$tables['user']; $user = new User(parent::fresh(), $this->_id); $user->_groups = $this->fetchGroups(); $user->_primary_group = $this->fetchPrimaryGroup(); return $user; }
public function fresh() { $bud = new MySqlBud(parent::fresh(), $this->_id); $bud->_users = $this->fetchUsers(); return $bud; }
public function fresh() { $pbidea = new MySqlPBidea(parent::fresh(), $this->_id); $pbidea->_pbidea = $this->fetchPBideas(); return $pbidea; }
public function fresh() { $osi = new MySqlOsi(parent::fresh(), $this->_id); $osi->_users = $this->fetchUsers(); return $osi; }