Hello,
I’m new to sylius, and I’m on version 1.12. I think my procedures and knowledge of prestashop are blocking me and I can’t manage to overload on sylius (I can’t find the answer to my question on the forums).
We have the bitbag_banners plugin, and I want to override the vendor/bitbag/banner-plugin/src/Entity/Banner.php entity. So I created src/Entity/Banner/Banner.php
<?php
declare(strict_types=1);
namespace App\Entity\Banner;
use BitBag\SyliusBannerPlugin\Entity\Banner as BannerBase;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Table(name="bitbag_banners")
*/
class Banner extends BannerBase
{
/**
* @var string
*
* @ORM\Column(name="title", type="string", length=255, nullable=true)
*/
private $title;
/**
* @return string|null
*/
public function getTitle(): ?string
{
return $this->title;
}
/**
* @param string|null $title
*
* @return self
*/
public function setTitle(?string $title): self
{
$this->title = $title;
return $this;
}
}
So I’m extending the class that is in the vendor, adding a string title field. But nothing to do, if I do php bin/console d:s:u --force or a migration, nothing happens.
If someone can help me to understand what is missing, it would be cool.
I’m on version 1.12
Sincerely