Monthly Archives: May 2013

Yii: Combining two DB tables into one model

Let we have two related SQL tables: CREATE TABLE `user` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `login` varchar(255) COLLATE utf8_bin NOT NULL, `email` varchar(255) COLLATE utf8_bin NOT NULL, `password` varchar(255) COLLATE utf8_bin NOT NULL, `firstname` varchar(255) COLLATE utf8_bin NOT … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment