Comments (5)
This is what I got when trying to delete an userClass:
An exception occurred while executing 'DELETE FROM user_class WHERE id = ?' with params [12]:
SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`antilope`.`sharable`, CONSTRAINT `FK_83471A9C57EEBAA5` FOREIGN KEY (`visible_by_id`) REFERENCES `user_class` (`id`))
from antilope.
Sounds like it's working !!! But is it normal that you did not generate any migrations? even after you've removed 'delete' cascade option from doctrine ??? @n-peugnet
When I make doctrine:migration:diff
doctrine tell me that:
No changes detected in your mapping information.
So I imagine it's good ??
from antilope.
As we read from Doctrine doc, this option was the doctrine one, which emulate at doctrine level the feature of ON DELETE 'cascade'
from SQL, which I kept.
It was only another software layer hover the database, so no migration needed.
from antilope.
Conclusion is : OH YEAH BABY
from antilope.
Good job on the rest of the deletion job, like the users moving and the warnings BTW!
from antilope.
Related Issues (20)
- open shrable filtered results in map
- Parse sharables / users (+ questions) in texts
- Show instance parameters
- Set prefered locale per user
- show anonymous managers answers as anonymous
- allow or not an userclass to be selected as visibleBy
- internal Blog HOT 1
- admin: send mail to users HOT 1
- Validation rich text
- open sharable filtered list in the map HOT 1
- publication / drafts
- image gallery in sharables
- allow user to create sharable without contact info if they aven't set any
- moderators
- really disable sharable when no managers are activited
- categories HOT 1
- add the possibility to let a message while a sharable is deactivated
- add price in sharable parameters
- add ability to upload files associated to sharable
- associate antilope to a private bittorrent tracker
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from antilope.