`// UserImportModel
class UserImportModel
{
public $excelFile;
/** @var int */
public $duplicateEmails;
/**
* @return int
*/
public function getDuplicateEmails(): int
{
return $this->duplicateEmails;
}
/**
* @param int $duplicateEmails
*/
public function setDuplicateEmails(int $duplicateEmails): void
{
$this->duplicateEmails = $duplicateEmails;
}
}`
`// MY FLOW
class ImportUsersFlow extends FormFlow
{
Hi guys,
I'm trying to use CraueFormFlowBundle because I need to create a quite complex form, with multiple steps. Here is my workflow:
The ultimate goal is to be able to import some data in DB.
Here is what I did:
`// CONTROLLER $formData = new UserImportModel(); $importUsersFlow->bind($formData);
`// UserImportModel class UserImportModel { public $excelFile;
}`
`// MY FLOW class ImportUsersFlow extends FormFlow {
}`
My file is uploaded, but just after the UserImportQuestionForm (step2) I have this error:
Can't get a way to read the property "id" in class "App\Entity\Model\UserImportModel".
I do not have a property ID in UserImportModel, I worked kind of what you did in the demo, here: DEMO UPLOAD
Can somebody can maybe help to understand why I get this ?