@ -12,7 +12,7 @@ use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* Language.
* Platform languages.
*
* @ORM\Table(
* name="language",
@ -14,7 +14,7 @@ use Symfony\Component\Serializer\Annotation\Groups;
* Tool.
* Platform tools.
* @ORM\Table(name="tool")
* @ORM\Entity
@ -13,7 +13,7 @@ use Doctrine\ORM\Mapping as ORM;
* TrackEAttempt.
* Questions per quiz user attempts.
* name="track_e_attempt",
@ -11,7 +11,7 @@ use Doctrine\ORM\Mapping as ORM;
* TrackEExercises.
* Quiz user attempts.
* @ORM\Table(name="track_e_exercises", indexes={
* @ORM\Index(name="idx_tee_user_id", columns={"exe_user_id"}),
@ -11,7 +11,7 @@ use DateTime;
use Doctrine\ORM\Mapping as ORM;
* UserRelUser.
* Associations between users (friends).
* @ORM\Table(name="user_rel_user", indexes={
* @ORM\Index(name="idx_user_rel_user__user", columns={"user_id"}),
@ -14,6 +14,8 @@ use Gedmo\Timestampable\Traits\TimestampableEntity;
* Classes and social groups.
* @ApiResource(
* attributes={"security"="is_granted('ROLE_ADMIN')"},
* normalizationContext={"groups"={"usergroup:read"}}