浏览代码

FileModel

tags/0.1
Guillaume 3 年前
父节点
当前提交
26eacc419c
共有 2 个文件被更改,包括 5 次插入5 次删除
  1. +3
    -3
      Doctrine/Extension/OpenGraphTrait.php
  2. +2
    -2
      Model/File/FileModel.php

+ 3
- 3
Doctrine/Extension/OpenGraphTrait.php 查看文件

@@ -3,7 +3,7 @@
namespace Lc\SovBundle\Doctrine\Extension;

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

trait OpenGraphTrait
@@ -48,12 +48,12 @@ trait OpenGraphTrait
}


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

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


Model/File/File.php → Model/File/FileModel.php 查看文件

@@ -16,8 +16,8 @@ use Lc\SovBundle\Doctrine\Extension\TimestampableTrait;
use Lc\SovBundle\Doctrine\Extension\TranslatableInterface;
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 BlameableTrait;

正在加载...
取消
保存