Hi there,
I'm asking a second question today, I'm sorry.
I created a lms system using Couch CMS. I created user and order management. The system works like this. The user registers on the site and buys the training he wants to receive. I can see the orders from the administration panel. Here's the subject I'm stuck on. I have two page users.php and training.php. And these two page have many-to-many relation.
When a user buy a training, I ad training id to relation field of users.php via db_persist.
But the problem If same user buy a second training on my website, only second training id shown in relation field of users.php
How can I solve this problem?
Also can I add more than 1 training id to relation field via db_persist?
I'm asking a second question today, I'm sorry.
I created a lms system using Couch CMS. I created user and order management. The system works like this. The user registers on the site and buys the training he wants to receive. I can see the orders from the administration panel. Here's the subject I'm stuck on. I have two page users.php and training.php. And these two page have many-to-many relation.
When a user buy a training, I ad training id to relation field of users.php via db_persist.
But the problem If same user buy a second training on my website, only second training id shown in relation field of users.php
How can I solve this problem?
Also can I add more than 1 training id to relation field via db_persist?