src/CoreBundle/Entity/UserCareer.php
<?php
declare(strict_types=1);
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Timestampable\Traits\TimestampableEntity;
#[ORM\Table(name: 'user_career')]
#[ORM\Entity]
class UserCareer
{
use TimestampableEntity;
#[ORM\Column(type: 'integer')]
#[ORM\Id]
#[ORM\GeneratedValue]
protected ?int $id = null;
#[ORM\ManyToOne(targetEntity: User::class)]
#[ORM\JoinColumn(name: 'user_id', referencedColumnName: 'id', nullable: false)]
protected User $user;
#[ORM\ManyToOne(targetEntity: Career::class)]
#[ORM\JoinColumn(name: 'career_id', referencedColumnName: 'id', nullable: false)]
protected Career $career;
#[ORM\Column(type: 'text', nullable: true)]
protected ?string $extraData = null;
}