I have installed modx revolution. I have also added few new custom tables. I have my new 'registration' table with a column 'userid'. I want to add this as foreign key(with n delete and on update cascade) linked with 'id' from modx_user default table.
How can I do that? I have created my tables with mysql CREATE queries.
When I add foreign key from default tables the error message is 'can not add foreign key'
Also provide me an example on how to insert data into two tables at a time provided both tables are linked with foreign key. Example when we create a new user, the data is inserted into modx_users and modx_user_attributes. How is it happening? Insert data into two tables at a time.....!!