'CraueFormFlowBundle Call to a member function bind() on array symfony 6
i try use CraueFormFlowBundle, but i have the error on:
Call to a member function bind() on array
$flow->bind($employe);
how i can solved?
public function add(Request $request, CvRepository $cvRepository) {
$employe = new Cv();
$flow = $this->getSubscribedServices('createVehicle');
$flow->bind($employe);
$form = $flow->createForm();
if ($flow->isValid($form)) {
$flow->saveCurrentStepData($form);
if ($request->isXmlHttpRequest()) {
$form = $flow->createForm();
} else {
if ($flow->nextStep()) {
$form = $flow->createForm();
} else {
$this->manager->persist($employe);
$this->manager->flush();
$this->manager->persist($uniqueToken->getToken($employe));
$this->manager->flush();
$flow->reset();
return $this->redirect($this->generateUrl('user_edit_personnal_info', array('id' => $employe->getId())));
}
}
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

