Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assigning null to 'id' attribute causes PostgreSQL to throw Not Null violation #62

Open
dor-denis opened this issue Jun 25, 2014 · 0 comments

Comments

@dor-denis
Copy link

When using Factory::make or Factory::create null value is being assigned to 'id' attribute of object. When the query is being generated it looks like INSERT INTO ('id' ...) VALUES (null, ...) which causes Not Null violation.
I have to add
if($key == 'id') continue;
to line 254 of Factory.php to make my tests work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant