Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/**
* @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
You can’t perform that action at this time.