Это мой учебный файл Country.php
<?php
namespace App\Entity;
use Sylius\Component\Addressing\Model\Country as BaseCountry;
class Country extends BaseCountry {
/**
* @var bool
*/
private $flag;
/**
* @return bool|null
*/
public function getFlag(): ?bool {
return $this->flag;
}
/**
* @param bool $flag
*/
public function setFlag(bool $flag): void {
$this->flag = $flag;
}
}
Это мой обычный файл. AppBundle / Resources / config / doctrine / Country.orm.yml
App\Entity\Country:
type: entity
table: sylius_country
fields:
flag:
type: boolean
nullable: true
Это мой конфигурационный файл. config / _sylius.yml
sylius_addressing:
resources:
country:
classes:
model: App\Entity\Country
Все нормально, как в модели настройки Sylius, но она не работает.