Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

Commit

Permalink
Meta image persist fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Cecilia Lechere committed Dec 7, 2017
1 parent cadfb2a commit f4fc9c7
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
23 changes: 22 additions & 1 deletion Entity/Meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*
* @ORM\Table(name="meta")
* @ORM\Entity(repositoryClass="Mdespeuilles\MetaBundle\Repository\MetaRepository")
* @Vich\Uploadable
* @Vich\Uploadable()
*/
class Meta
{
Expand Down Expand Up @@ -88,6 +88,13 @@ class Meta
* @ORM\Column(name="language", type="string", length=255, nullable=true)
*/
private $language;

/**
* @ORM\Column(type="datetime", nullable=true)
*
* @var \DateTime
*/
private $updatedAt;


/**
Expand Down Expand Up @@ -307,5 +314,19 @@ public function setLanguage($language)
{
$this->language = $language;
}

/**
* @return \DateTime
*/
public function getUpdatedAt() {
return $this->updatedAt;
}

/**
* @param \DateTime $updatedAt
*/
public function setUpdatedAt($updatedAt) {
$this->updatedAt = $updatedAt;
}
}

5 changes: 5 additions & 0 deletions Resources/public/css/meta.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,9 @@
text-align: center;
line-height: 35px;
height: 35px;
}

#meta-quick-form img {
max-width: 100%;
height: auto;
}

0 comments on commit f4fc9c7

Please sign in to comment.