Skip to content

Inconsistent User Entity classes #9955

Closed
@truckee

Description

@truckee

The User classes shown on pages How to Load Security Users from the Database and How to Implement a Simple Registration Form are inconsistent. For one, the Security Users page includes

    /**
     * @ORM\Column(name="is_active", type="boolean")
     */
    private $isActive;

    public function __construct()
    {
        $this->isActive = true;
        // may not be needed, see section on salt below
        // $this->salt = md5(uniqid('', true));
    }

whereas the Simple Registration page instead has

    public function __construct()
    {
        $this->roles = array('ROLE_USER');
    }

One would expect them either to be the same or to include an explanation for why they are different.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions