Field skipped when creating object?
Closed this issue · 1 comments
I have a fixture as:
Contact:
last_name: $string
first_name: $string
email: $string@$string.com
active: $boolean
companies_id:
type: Company
user_id:
type: User
When it generates the test object, the SQL produces an error (see first_name field is skipped)
Illuminate\Database\QueryException: SQLSTATE[23000]: Integrity constraint violation: 19 contacts.first_name may not be NULL (SQL: insert into "contacts" ("last_name", "email", "active", "companies_id", "user_id", "updated_at", "created_at") values (consequatur, sit@quia.com, 0, 1, 2, 2014-10-30 15:32:05, 2014-10-30 15:32:05))
OK, check that... There IS an issue with TestDummy and it is definitely dropping a field (the 'first_name' field in this case). The initial report was indeed correct.