for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of Transfer.
*
* For the full copyright and license information, please view the LICENSE file located
* in the root directory.
*/
namespace Transfer\EzPlatform\Repository\Values;
use Transfer\EzPlatform\Repository\Values\Mapper\UserMapper;
** Available keys: **
$parents = Transfer\EzPlatform\Data\UserGroupObject[]
$data = [
username => string
email => string
password => string
main_language_code => string
enabled => bool
max_login => int
fields => [ first_name => string
last_name => string
... ]
],
$properties = [
action => int {@link see \Transfer\EzPlatform\Data\Action\Enum\Action}
]
** Required on `create`:
**** Required by transfer:
`username´
`email`
`password`
**** Required by eZ:
`èmail`
`main_language_code`
And any required fields in `fields`
** Required on `update`:
`username`
/**
* User object.
class UserObject extends EzPlatformObject
{
* @var UserMapper
protected $mapper;
* @return UserMapper
public function getMapper()
if (!$this->mapper) {
$this->mapper = new UserMapper($this);
}
return $this->mapper;