Actually I'm doing a query using setParameters of Doctrine but if I try to get the query I see the parameters aren't setted.
The code is this:
$query = $this->createQueryBuilder('l')
->where('l.project = :projectId')
->andWhere('l.state.value != :deletedState')
->setParameters([
'projectId' => $project->getId(),
'deletedState' => LandingState::STATE_DELETED,
]);
And this is the query I get if I make a var_dump
'SELECT l0_.lan_id AS lan_id_0, l0_.lan_title AS lan_title_1,
l0_.lan_url AS lan_url_2, l0_.lan_testimony AS lan_testimony_3,
l0_.lan_testimony_content AS lan_testimony_content_4,
l0_.lan_final_claim AS lan_final_claim_5, l0_.lan_service_ids AS
lan_service_ids_6, l0_.lan_state AS lan_state_7, l0_.lan_index AS
lan_index_8, l0_.lan_follow AS lan_follow_9, l0_.lan_script AS
lan_script_10, l0_.lan_date_insert AS lan_date_insert_11,
l0_.lan_date_update AS lan_date_update_12, l0_.pro_id AS pro_id_13,
l0_.lan_image AS lan_image_14, l0_.lan_testimony_image AS
lan_testimony_image_15 FROM landing l0_ WHERE l0_.pro_id = ? AND
l0_.lan_state <> ?'
But if I try to get the value of $project->getId() or the LandingState::STATE_DELETED with an echo I get the value. Why in query aren't the values setteds?