php - How can use querybuilder with Symfony formbuilder to join two entities?

Solution:
Do you have the following in your class?
use Doctrine\ORM\Mapping as ORM;
class Data
{
/**
* @ORM\Column(name="field")
*/
private $field;
}
Normally that would be enough for doctrine to resolve that error
- And as @yceruto says in the comments
It is
// This is right
->setParameter('field', 22)
Instead of
// This is wrong
->setParameter(':field', ...)
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: call to undefined function illuminate\encryption\openssl_cipher_iv_length()
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.