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

DmBlameable: problema with "notnull" in created_by and updated_by #41

Closed
jaimesuez opened this issue Feb 22, 2010 · 2 comments
Closed
Labels

Comments

@jaimesuez
Copy link

In the Doctrine_Template_DmBlameable the default option for created_by and updated by are:

'options' => array('notnull' => false)

But I'm working with fixtures, trying to let in null some basic entries that my software need, but I get an error of the foreign key:

Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (iglesia/profesion, CONSTRAINT profesion_updated_by_dm_user_id FOREIGN KEY (updated_by) REFERENCES dm_user (id))

This is my schema:

Profesion: actAs: DmBlameable: ~ columns: nombre: { type: string(255), notnull: true, unique: true }

This is my fixture

Profesion:
ingeniero:
nombre: Ingeniero Civil Industrial

@ornicar
Copy link
Contributor

ornicar commented Feb 24, 2010

DmBlameable default ident is null - Closed by b02e839

@jaimesuez
Copy link
Author

Thanks! Now it works well!

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

No branches or pull requests

2 participants