Generate Scaffold from table fails writing PHPDocType because relations #457
I have this table
That has a relationship to users with the user_id field.
I'm trying to generate the scaffold for that table with this command
And I'm getting this error
Doing a little of research I have this trace
Looking into the getPHPDocType method i see this line
Doing a var_dump over relation to see what is having I got this
As you can see there is no element 1.
I can not get more information to solve this issue, not sure why is expecting something in the position 1.
Hope the information helps to solve this issue.