Closed clubdesarrolladores closed 8 years ago
Where do you have this query ? In the execute method or in the getTotalCount method ?
Can you show me the configuration of the customer.name field because I can't understand where the DISTINCT _customer.name
statement came from.
This definition is in Service, not in Project class.
/**
* @var Customer $customer
*
* @ORM\ManyToOne(targetEntity="\WebFactory\CompanyBundle\Entity\Customer", inversedBy="services", cascade={"persist"})
* @ORM\JoinColumn(name="customer_id", referencedColumnName="id", nullable=true)
* @Assert\NotBlank
* @Grid\Column(title="Customer", field="customer.name", filter="select", selectFrom="query", operatorsVisible=false)
* @Grid\Column(field="customer.id", filterable=false, visible=false)
*/
protected $customer;
I'm not sure, but i guest is in getTotalCount.
You shouldn't have a dinstinct here.
I know. I can not be precise in time but initially it worked fine. It was an update which broke the feature.
Hi.
This code was working, but now show a error in the generated DQL. This is the important code:
The entity
The controller:
And this is the error message:
This happens only when de user filter by tags