Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Custom Attributes And Multi-Model Validation

$
0
0
I have a form, using which user can submit a post. For example post (model Post) have title, text and list of tags. Tags (model Tag) are stored in a different table and saved to database using another model.

When user submits a form it goes through validation process, but I can't save tags for the post before post itself becomes validated and saved to database.

How do I resolve this issue, so list of tags are saved when user submits a post?

Viewing all articles
Browse latest Browse all 18717

Trending Articles