sonata

INVALID MODE : s5a869f19a6c57_equivalents - type : sonata_type_collection - mapping :

社会主义新天地 提交于 2021-02-10 20:22:52
问题 I am building a new feature onto a Symfony 2.8 application using a few Sonata bundles. My Page.php entity definition includes the following mapping: /** * @var ArrayCollection * * @ORM\ManyToMany(targetEntity="AppBundle\Entity\Equivalent", cascade={"all"}) * @ORM\JoinTable(name="page_equivalent", * joinColumns={@ORM\JoinColumn(name="page_id", referencedColumnName="id")}, * inverseJoinColumns={@ORM\JoinColumn(name="equivalent_id", referencedColumnName="id", unique=true)} * ) */ private

INVALID MODE : s5a869f19a6c57_equivalents - type : sonata_type_collection - mapping :

好久不见. 提交于 2021-02-10 20:20:46
问题 I am building a new feature onto a Symfony 2.8 application using a few Sonata bundles. My Page.php entity definition includes the following mapping: /** * @var ArrayCollection * * @ORM\ManyToMany(targetEntity="AppBundle\Entity\Equivalent", cascade={"all"}) * @ORM\JoinTable(name="page_equivalent", * joinColumns={@ORM\JoinColumn(name="page_id", referencedColumnName="id")}, * inverseJoinColumns={@ORM\JoinColumn(name="equivalent_id", referencedColumnName="id", unique=true)} * ) */ private

Sonata Seo Bundle with MongoDB giving database connectivity error in sitemap with Symfony 3.4

心不动则不痛 提交于 2021-01-28 17:39:00
问题 I am trying to connect Sonata Seo Bundle with MongoDB in Symfony 3.4 and try to generate sitemap through it. But I am getting error as follows: Type error: Argument 1 passed to Sonata\Exporter\Source\DoctrineDBALConnectionSourceIterator::__construct() must be an instance of Doctrine\DBAL\ Driver\Connection, instance of MongoDB\Client given, called in var/cache/dev/ContainerXocz3o4/getSonata_Seo_Source_Do ctrineSitemapIterator0Service.php on line 8 Sotana Seo Configuration is as follows:

Sonata Seo Bundle with MongoDB giving database connectivity error in sitemap with Symfony 3.4

不打扰是莪最后的温柔 提交于 2021-01-28 17:37:42
问题 I am trying to connect Sonata Seo Bundle with MongoDB in Symfony 3.4 and try to generate sitemap through it. But I am getting error as follows: Type error: Argument 1 passed to Sonata\Exporter\Source\DoctrineDBALConnectionSourceIterator::__construct() must be an instance of Doctrine\DBAL\ Driver\Connection, instance of MongoDB\Client given, called in var/cache/dev/ContainerXocz3o4/getSonata_Seo_Source_Do ctrineSitemapIterator0Service.php on line 8 Sotana Seo Configuration is as follows:

Sonata Seo Bundle with MongoDB giving database connectivity error in sitemap with Symfony 3.4

天大地大妈咪最大 提交于 2021-01-28 17:37:14
问题 I am trying to connect Sonata Seo Bundle with MongoDB in Symfony 3.4 and try to generate sitemap through it. But I am getting error as follows: Type error: Argument 1 passed to Sonata\Exporter\Source\DoctrineDBALConnectionSourceIterator::__construct() must be an instance of Doctrine\DBAL\ Driver\Connection, instance of MongoDB\Client given, called in var/cache/dev/ContainerXocz3o4/getSonata_Seo_Source_Do ctrineSitemapIterator0Service.php on line 8 Sotana Seo Configuration is as follows:

sonata/twig error after symfony update 2.6 to 3.4

送分小仙女□ 提交于 2020-01-06 15:01:38
问题 im updating a project from sf2.6(php5.6) to sf3.4(php7.1)... its going well but now im stuck with an error i cant figure out how to fix it error output: PHP message: PHP Fatal error: Uncaught Symfony\\Component\\Debug\\Exception\\FatalThrowableError: Type error: Argument 2 passed to Sonata\\FormatterBundle\\Formatter\\Pool::add() must implement interface Sonata\\FormatterBundle\\Formatter\\FormatterInterface, boolean given, called in /var/www/var/cache/dev/ContainerMklcxqq

sonata/twig error after symfony update 2.6 to 3.4

*爱你&永不变心* 提交于 2020-01-06 15:01:02
问题 im updating a project from sf2.6(php5.6) to sf3.4(php7.1)... its going well but now im stuck with an error i cant figure out how to fix it error output: PHP message: PHP Fatal error: Uncaught Symfony\\Component\\Debug\\Exception\\FatalThrowableError: Type error: Argument 2 passed to Sonata\\FormatterBundle\\Formatter\\Pool::add() must implement interface Sonata\\FormatterBundle\\Formatter\\FormatterInterface, boolean given, called in /var/www/var/cache/dev/ContainerMklcxqq

deprecated warnings when using sonata admin bundle

帅比萌擦擦* 提交于 2020-01-05 04:40:21
问题 I am using symfony2.7 with sonata admin doctrine orm bundle, I followed the official install instructions, works fine except one thing. At every request I get the following debrecated warnings, and I dont know how to eliminate it. Date: 2016-10-18 08:58:28 Fatal: array( ['type'] => 16384, ['message'] => 'This class is deprecated since 3.2 and will be removed with the 4.0 release.Use Sonata\BlockBundle\Block\Block\Service\AbstractBlockService instead.', ['file'] => '/www/managedoc/branch

ClassNotFoundException: Attempted to load class “FOSUserBundle” from namespace “FOS\UserBundle”

人走茶凉 提交于 2020-01-04 06:45:30
问题 (Using WampServer on Windows 10.) I followed the official documentation in order to install Sonata User Bundle over Symfony. I get the following error message (1/1) ClassNotFoundException Attempted to load class "FOSUserBundle" from namespace "FOS\UserBundle". Did you forget a "use" statement for another namespace? AppKernel.php <?php use Symfony\Component\HttpKernel\Kernel; use Symfony\Component\Config\Loader\LoaderInterface; class AppKernel extends Kernel { public function registerBundles()

ClassNotFoundException: Attempted to load class “FOSUserBundle” from namespace “FOS\UserBundle”

怎甘沉沦 提交于 2020-01-04 06:45:09
问题 (Using WampServer on Windows 10.) I followed the official documentation in order to install Sonata User Bundle over Symfony. I get the following error message (1/1) ClassNotFoundException Attempted to load class "FOSUserBundle" from namespace "FOS\UserBundle". Did you forget a "use" statement for another namespace? AppKernel.php <?php use Symfony\Component\HttpKernel\Kernel; use Symfony\Component\Config\Loader\LoaderInterface; class AppKernel extends Kernel { public function registerBundles()