Created
December 28, 2021 22:56
-
-
Save ismail1432/8601d31a43bc9497f3bca57c528197bc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Entity; | |
use App\Status; | |
use Doctrine\ORM\Mapping as ORM; | |
/** | |
* @ORM\Entity() | |
*/ | |
class Article | |
{ | |
/** | |
* @ORM\Id | |
* @ORM\GeneratedValue | |
* @ORM\Column(type="integer") | |
*/ | |
private $id; | |
/** // "status" corresponds to the name defined in StatusType::getName() | |
* | |
* @ORM\Column(type="status", length=255) | |
*/ | |
private ?Status $status = null; | |
// Getters | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment