<?php
 namespace App\EntityPreference; class User extends \App\EntityPreference\BaseAbstract { protected $field_idEntityName='idUser'; protected $field_lastUpdateUser=null; protected $cacheType = 'session'; static public function getInstance($idEntity = null) { if (!$idEntity) { $idEntity = CURRENT_ID_USER; } return parent::getInstance($idEntity); } protected function setDbTableName() { global $DBTUsersPreferences; $this->DBTEntityPreferences = $DBTUsersPreferences; } } 