support avatar url with 255 chars
This commit is contained in:
@@ -95,7 +95,7 @@ class User implements UserInterface
|
|||||||
/**
|
/**
|
||||||
* @var string
|
* @var string
|
||||||
*
|
*
|
||||||
* @ORM\Column(name="avatar", type="string", length=50, nullable=true)
|
* @ORM\Column(name="avatar", type="string", length=255, nullable=true)
|
||||||
*/
|
*/
|
||||||
private $avatar;
|
private $avatar;
|
||||||
|
|
||||||
|
|||||||
@@ -41,6 +41,10 @@ class UserEditType extends AbstractType
|
|||||||
//'attr' => ['autofocus' => true],
|
//'attr' => ['autofocus' => true],
|
||||||
'label' => 'label.title',
|
'label' => 'label.title',
|
||||||
])
|
])
|
||||||
|
// string - length 255
|
||||||
|
->add('avatar', null, [
|
||||||
|
'label' => 'label.avatar',
|
||||||
|
])
|
||||||
// string - length 160
|
// string - length 160
|
||||||
->add('email', null, [
|
->add('email', null, [
|
||||||
'label' => 'label.email',
|
'label' => 'label.email',
|
||||||
@@ -53,7 +57,6 @@ class UserEditType extends AbstractType
|
|||||||
->add('active', YesNoType::class, [
|
->add('active', YesNoType::class, [
|
||||||
'label' => 'label.active',
|
'label' => 'label.active',
|
||||||
])
|
])
|
||||||
// TODO avatar
|
|
||||||
// TODO roles - see ProfileController::getRoles()
|
// TODO roles - see ProfileController::getRoles()
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user