Skip to content

Instantly share code, notes, and snippets.

@ismail1432
Created December 28, 2021 22:56
Show Gist options
  • Save ismail1432/8601d31a43bc9497f3bca57c528197bc to your computer and use it in GitHub Desktop.
Save ismail1432/8601d31a43bc9497f3bca57c528197bc to your computer and use it in GitHub Desktop.
<?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