We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I try to add custom form elements using the module options.
My User entity:
class User implements UserInterface, ProviderInterface { /** * @var int * @ORM\Id * @ORM\Column(name="user_id", type="integer") * @ORM\GeneratedValue(strategy="AUTO") */ protected $id; /** * @var string * @ORM\Column(type="string", length=255, unique=true, nullable=true) */ protected $username; /** * @var string * @ORM\Column(type="string", unique=true, length=255) */ protected $email; /** * @var string * @ORM\Column(name="display_name", type="string", length=50, nullable=true) */ protected $displayName; /** * @var string * @ORM\Column(type="string", length=128) */ protected $password; /** * @var int */ protected $state; /** * @var \Doctrine\Common\Collections\Collection * @ORM\ManyToMany(targetEntity="Application\Entity\Role") * @ORM\JoinTable(name="user_role_linker", * joinColumns={@ORM\JoinColumn(name="user_id", referencedColumnName="user_id")}, * inverseJoinColumns={@ORM\JoinColumn(name="role_id", referencedColumnName="role_id")} * ) */ protected $roles; /** * @var \Doctrine\Common\Collections\Collection * @ORM\ManyToMany(targetEntity="Application\Entity\CostCenter") * @ORM\JoinTable(name="user_costCenter", * joinColumns={@ORM\JoinColumn(name="user_id", referencedColumnName="user_id")}, * inverseJoinColumns={@ORM\JoinColumn(name="costCenter_id", referencedColumnName="id")} * ) */ private $costCenters; public function __construct() { $this->roles = new ArrayCollection(); $this->costCenters = new ArrayCollection(); } /* correct getters and setters */
My module options
'create_form_elements' => array( 'Email' => 'email', 'Cost centers' => 'costCenters' ), 'edit_form_elements' => array( 'Email' => 'email', 'Cost centers' => 'costCenters' )
The ZfcUserAdmin\Form\CreateUser form correctely creates a text element.
The ZfcUserAdmin\Form\EditUser shows the following error: Object provided to Escape helper, but flags do not allow recursion
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I try to add custom form elements using the module options.
My User entity:
My module options
The ZfcUserAdmin\Form\CreateUser form correctely creates a text element.
The ZfcUserAdmin\Form\EditUser shows the following error:
Object provided to Escape helper, but flags do not allow recursion
The text was updated successfully, but these errors were encountered: