Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Limitations in m-to-m rel & check duplicates? 27 Jul 2012 08:53 #2913

  • tr4ding
  • tr4ding's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 42
  • Thank you received: 0
HI Folks :)

My component is structured in a lot of many to many relations.......

I think in JCook there are 2 main problems:

1. I am forced to use a surrogate primary key in a many to many relation table....

eg. (correct according to DBMS literature)

table: student_exams
Fields:
id_student
id_exam
other fields..........

same eg. (when I use JCook framework)

table: student_exams
Fields:
id
id_student
id_exam
other fields.........

2. In JCook, I'm unable to check duplicates in tables......this can cause Database inconsistency.....expecially in a many-to many-relation table.....

Proposed solution

Problem n.1 is marginal in JCook roadmap........

My idea is to use InnoDB Engine instead of MyISAM in order to impose referential constraints in tables.......could this work to prevent problem n. 2?

I think (but I prefer to be contradicted :) ) that cascade function to delete FK doesn't work properly or I don't understand how it works properly for my case study.....

Have a nice day :)

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.100 seconds

  Merci d'avoir présenté ce service web générateur de composant joomla. L'interface est très conviviale on a le plaisir du drag&drop et c'est assez rare pour être signalé. Je souhaite que ce projet connaisse un fort succès votre réalisation est méritante.
Yann Gomiero (AFUJ - France)

Get Started