Overview

Namespaces

  • ApiBundle
    • DataFixtures
      • Faker
        • Provider
    • DependencyInjection
    • Doctrine
      • DBAL
        • Type
      • ORM
        • Filter
          • User
    • Entity
    • EventListener
      • Doctrine
    • Manager
    • Utils
  • FrontBundle
    • Bundle
      • UserBundle
    • Client
      • Exception
    • Controller
    • DependencyInjection
    • Form
      • DataTransformer
      • Type
    • Menu
    • Security
      • Http
        • Authentication
    • Services
      • Http
    • Twig
    • Utils

Classes

  • Address
  • Job
  • Mandate
  • StudentConvention
  • User
  • Overview
  • Namespace
  • Class

Class User

Class User: user that have an account in the application.

In this class, the term "organization" refers either to a Junior-Entreprise, Creation and such or a company.

FOS\UserBundle\Model\User
Extended by ApiBundle\Entity\User
Namespace: ApiBundle\Entity
Author: Théo FIDRY theo.fidry@gmail.com
Orm\entity
Uniqueentity("email")
Uniqueentity("username")
Located at ApiBundle/Entity/User.php
Methods summary
public
# __construct( )
public
# setCreatedAt( DateTime $createdAt )

Parameters

$createdAt

Returns


$this
public DateTime
# getCreatedAt( )

Returns

DateTime
public
# setEndingSchoolYear( integer $endingSchoolYear )

Parameters

$endingSchoolYear

Returns


$this
public integer|null
# getEndingSchoolYear( )

Returns

integer|null
public
# setFullname( string|null $fullname )

Parameters

$fullname

Returns


$this
public string|null
# getFullname( )

Returns

string|null
public
# addJob( ApiBundle\Entity\Job $job )

Adds Job. Will automatically update job's user too.

Adds Job. Will automatically update job's user too.

Parameters

$job

Returns


$this
public
# removeJob( ApiBundle\Entity\Job $job )

Removes job. Will automatically update job's user too.

Removes job. Will automatically update job's user too.

Parameters

$job

Returns


$this
public Doctrine\Common\Collections\ArrayCollection|ApiBundle\Entity\Job[]
# getJobs( )

Returns

Doctrine\Common\Collections\ArrayCollection|ApiBundle\Entity\Job[]
public
# setOrganizationEmail( string $organizationEmail )

Parameters

$organizationEmail

Returns


$this
public string|null
# getOrganizationEmail( )

Returns

string|null
public
# setOrganizationEmailCanonical( string $organizationEmailCanonical )

Parameters

$organizationEmailCanonical

Returns


$this
public string|null
# getOrganizationEmailCanonical( )

Returns

string|null
public
# setStudentConvention( ApiBundle\Entity\StudentConvention $studentConvention = null )

Parameters

$studentConvention

Returns


$this
public ApiBundle\Entity\StudentConvention|null
# getStudentConvention( )

Returns

ApiBundle\Entity\StudentConvention|null
public
# addType( string $type )

Add the given type if is not already present.

Add the given type if is not already present.

Parameters

$type
See ::getAllowedTypes() for valid values

Returns


$this
public
# setTypes( array $types )

See ::getAllowedTypes() for valid values.

See ::getAllowedTypes() for valid values.

Parameters

$types

Returns


$this
public array
# getTypes( )

Returns

array
public
# setUpdatedAt( DateTime $updatedAt )

Parameters

$updatedAt

Returns


$this
public DateTime
# getUpdatedAt( )

Returns

DateTime
public static array
# getAllowedTypes( )

Returns

array
Array of all valid values for the ::type property.
public
# validate( Symfony\Component\Validator\Context\ExecutionContextInterface $context )

Parameters

$context

Assert\callback

Constants summary
string TYPE_CONTRACTOR
# 'TYPE_CONTRACTOR'
string TYPE_MEMBER
# 'TYPE_MEMBER'
Properties summary
protected $id

Orm\column(type="integer")

Orm\generatedvalue(strategy="auto")

Orm\id

#
protected DateTime $createdAt

Gedmo\timestampable(on="create")

Groups({"user-read"})

Orm\column(type="datetime")

#
protected $email

Assert\email

Assert\notblank

Groups({"user"})

Iri("https://schema.org/email")

#
protected boolean $enabled

Assert\notnull

Groups({"user"})

Todo:

validation for boolean
# false
protected string $fullname

Assert\notblank

Assert\type("string")

Groups({"user"})

Iri("https://schema.org/name")

Orm\column(type="string",

length=255, nullable=true)

Todo:

validation for username!
#
protected string $plainPassword

Groups({"user-write"})

Todo:

validation for the password!
#
protected $roles

Groups({"user"})

#
protected $username

Assert\type("string")

Groups({"user"})

Todo:

validation for username!
#
protected Doctrine\Common\Collections\ArrayCollection|ApiBundle\Entity\Job[] $jobs

List of job for this user.

List of job for this user.

Groups({"user"})

Orm\manytomany(targetentity="job",

mappedBy="users")

Todo:

validation: may have no user
#
protected DateTime $updatedAt

Gedmo\timestampable(on="update")

Groups({"user-read"})

Orm\column(type="datetime")

#
API documentation generated by ApiGen