Browse Source

FileModel

tags/0.1
Guillaume 3 years ago
parent
commit
26eacc419c
2 changed files with 5 additions and 5 deletions
  1. +3
    -3
      Doctrine/Extension/OpenGraphTrait.php
  2. +2
    -2
      Model/File/FileModel.php

+ 3
- 3
Doctrine/Extension/OpenGraphTrait.php View File

namespace Lc\SovBundle\Doctrine\Extension; namespace Lc\SovBundle\Doctrine\Extension;


use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\Mapping as ORM;
use Lc\SovBundle\Model\File\File;
use Lc\SovBundle\Model\File\FileModel;
use Lc\SovBundle\Model\File\FileInterface; use Lc\SovBundle\Model\File\FileInterface;


trait OpenGraphTrait trait OpenGraphTrait
} }




public function getOpenGraphImage(): ?File
public function getOpenGraphImage(): ?FileModel
{ {
return $this->openGraphImage; return $this->openGraphImage;
} }


public function setOpenGraphImage(?File $openGraphImage): self
public function setOpenGraphImage(?FileModel $openGraphImage): self
{ {
$this->openGraphImage = $openGraphImage; $this->openGraphImage = $openGraphImage;



Model/File/File.php → Model/File/FileModel.php View File

use Lc\SovBundle\Doctrine\Extension\TranslatableInterface; use Lc\SovBundle\Doctrine\Extension\TranslatableInterface;
use Lc\SovBundle\Doctrine\Extension\TranslatableTrait; use Lc\SovBundle\Doctrine\Extension\TranslatableTrait;


abstract class File implements SortableInterface, BlameableInterface, TimestampableInterface, TranslatableInterface,
DevAliasInterface, EntityInterface
abstract class FileModel implements SortableInterface, BlameableInterface, TimestampableInterface, TranslatableInterface,
DevAliasInterface, EntityInterface
{ {
use DevAliasTrait; use DevAliasTrait;
use BlameableTrait; use BlameableTrait;

Loading…
Cancel
Save