<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* BlogImagen
*
* @ORM\Table(name="blog_imagen")
* @ORM\Entity(repositoryClass="App\Repository\BlogImagenRepository")
*/
class BlogImagen
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="imagen", type="string", length=255, nullable=false)
*/
private $imagen;
/**
* @var Blog
*
* @ORM\ManyToOne(targetEntity="App\Entity\Blog")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="blog_id", referencedColumnName="blog_id")
* })
*/
private $blog;
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
public function getImagen()
{
return $this->imagen;
}
public function setImagen($imagen)
{
$this->imagen = $imagen;
}
/**
* @return Blog
*/
public function getBlog()
{
return $this->blog;
}
public function setBlog($blog)
{
$this->blog = $blog;
}
}