From 2f09ea7c740ca2649329feb7f2249bc5300a3672 Mon Sep 17 00:00:00 2001 From: Kevin Papst Date: Mon, 1 Jan 2018 16:26:53 +0100 Subject: [PATCH] support avatar url with 255 chars --- src/AppBundle/Entity/User.php | 2 +- src/AppBundle/Form/UserEditType.php | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/AppBundle/Entity/User.php b/src/AppBundle/Entity/User.php index 908d0325..110334dc 100644 --- a/src/AppBundle/Entity/User.php +++ b/src/AppBundle/Entity/User.php @@ -95,7 +95,7 @@ class User implements UserInterface /** * @var string * - * @ORM\Column(name="avatar", type="string", length=50, nullable=true) + * @ORM\Column(name="avatar", type="string", length=255, nullable=true) */ private $avatar; diff --git a/src/AppBundle/Form/UserEditType.php b/src/AppBundle/Form/UserEditType.php index d5db9853..51922b7d 100644 --- a/src/AppBundle/Form/UserEditType.php +++ b/src/AppBundle/Form/UserEditType.php @@ -41,6 +41,10 @@ class UserEditType extends AbstractType //'attr' => ['autofocus' => true], 'label' => 'label.title', ]) + // string - length 255 + ->add('avatar', null, [ + 'label' => 'label.avatar', + ]) // string - length 160 ->add('email', null, [ 'label' => 'label.email', @@ -53,7 +57,6 @@ class UserEditType extends AbstractType ->add('active', YesNoType::class, [ 'label' => 'label.active', ]) - // TODO avatar // TODO roles - see ProfileController::getRoles() ; }