Open shts-on-fire opened 6 years ago
Hi davidou66,
Thanks for using EDBlogBundle. Can you explain me what error do you see after ParamConverter crashes the application? Can you paste it here?
Also I am curious to see how does your Sylius User class looks.
Hi,
Error from the ParamConverter:
Controller "ED\BlogBundle\Controller\Frontend\BlogController::singleArticleAction()" requires that you provide a value for the "$article" argument. Either the argument is nullable and no null value has been provided, no default value has been provided or because there is a non optional argument.
User class: `<?php namespace AppBundle\Entity;
use ED\BlogBundle\Interfaces\Model\BlogUserInterface; use ED\BlogBundle\Interfaces\Model\ArticleCommenterInterface; use FOS\UserBundle\Model\User as BaseUser; use Sylius\Component\Core\Model\AdminUser as SyliusUser; use Doctrine\ORM\Mapping as ORM; use FOS\UserBundle\Model\UserInterface;
/**
@ORM\Entity(repositoryClass="AppBundle\Repository\UserRepository") */ class User extends SyliusUser implements BlogUserInterface, ArticleCommenterInterface { /**
public function getBlogDisplayName() { return $this->blogDisplayName; }
public function setBlogDisplayName($blogDisplayName) { $this->blogDisplayName = $blogDisplayName;
return $this;
}
public function getCommenterDisplayName() { return $this->blogDisplayName; } }`
Sorry for the late response, we found another bundle wich extends the Sylius e-commerce platform.
By the way, great job on this bundle. It's a shame we couldn't use it.
Hello,
We are currently using Sylius 1.0.4 with your bundle for our project, but are having a few problems. These are not problems directly linked to your bundle, but after implementation into our solution. We tried using the dev-symfony3 branch which fixes problems related to the composer.json, but are left with these :
@ParamConverter("article", class="ED\BlogBundle\Interfaces\Model\ArticleInterface", converter="abstract_converter")
This is an examplTThis is an example, but every ParamConverter crashes the application.Do you have a better solution ?
I didn't know where to post this, but if you could help me I would be very grateful Have a good day.