Skip to content

Instantly share code, notes, and snippets.

@theodesp
Created December 7, 2019 15:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theodesp/ba5af81edf86348b86f8811872c06bc1 to your computer and use it in GitHub Desktop.
Save theodesp/ba5af81edf86348b86f8811872c06bc1 to your computer and use it in GitHub Desktop.
/**
* @ORM\Entity(repositoryClass="App\Repository\ProductRepository")
*/
class Product
{
use ORMBehaviors\Translatable\Translatable;
/**
* @ORM\Id()
* @ORM\GeneratedValue(strategy="NONE")
* @ORM\Column(type="integer")
*/
private $id;
public function getId()
{
return $this->id;
}
public function setId($id): void
{
$this->id = $id;
}
/**
* @ORM\Column(type="integer")
*/
private $price;
/**
* @return mixed
*/
public function getPrice()
{
return $this->price;
}
/**
* @param mixed $price
*/
public function setPrice($price): void
{
$this->price = $price;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment