I try to write plugin to pimcore and need in it use User class to change user table in database. How should I do it? Simply:
$user = Objects\User::getById(2);
doesn't work:
include_once(Pimcore/Model/Object/ClassDefinition/Data/Objects/User.php): failed to open stream: No such file or directory in /var/www/pimcore/pimcore/lib/Zend/Loader.php on line 134
thanks in advance!
I have done this way:
`$db = Mysql::get();
$select = $db->select()
->from('users', ['lastpasswordedit'])
->where('id = ?', $userId);
$stmt = $db->query($select);
$result = $stmt->fetch();`
Thanks @Igor Benko !