-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Semantical Error] line 0, col 61 near 't WHERE t.id': Error: Class AppBundle\Entity\Comment has no association named thread #615
Comments
any one plz help me |
stack trash [1] Doctrine\ORM\Query\QueryException: [Semantical Error] line 0, col 61 near 't WHERE t.id': Error: Class AppBundle\Entity\Comment has no association named thread
[2] Doctrine\ORM\Query\QueryException: SELECT c FROM AppBundle\Entity\Comment c INNER JOIN c.thread t WHERE t.id = :thread ORDER BY c.ancestors ASC
|
@stof plz help |
Well, Doctrine tells us that there is no association named this makes me think that you haven't followed the doc in https://github.com/FriendsOfSymfony/FOSCommentBundle/blob/master/Resources/doc/2a-mapping_orm.md |
dear @stof i followed every steps ! but i cant see thread attributes in my comment table ...is it necessary? |
author = $author; } public function getAuthor() { return $this->author; } public function getAuthorName() { if (null === $this->getAuthor()) { return 'Anonymous'; } return $this->getAuthor()->getUsername(); } } |
i have all the entity configuration in xml ....all i am doine to generate comment entity is run command if i dont create xml configured entity with field thread through cmdline then it cant generate table with thread attribute |
Config.yml imports: easy_admin: fos_comment: assetic:bundles: [ "FOSCommentBundle" ]fos_user:
Put parameters here that don't need to change on each machine where the app is deployedhttps://symfony.com/doc/current/best_practices/configuration.html#application-related-configurationparameters: framework: Twig Configurationtwig: Assetic Configurationassetic: Doctrine Configurationdoctrine:
Swiftmailer Configurationswiftmailer: |
composer.json {
} |
comment.orm.xml |
@stof i installed and configure completely but i can't see comment bundle in composer.json file please help |
thanks @merk for replying ...solved it
|
after replying all comment gone .....why is that happening |
I'm sorry nobody actually replied to you 😭 |
using foscomment bundle bt nothing getting on screen...500 internal error in jquery at console
plz help me
The text was updated successfully, but these errors were encountered: