2018-01-09 01:07:26 +08:00
|
|
|
#include "post.h"
|
2016-05-12 14:08:58 +08:00
|
|
|
#include "comment.h"
|
|
|
|
|
#include "tableset.h"
|
|
|
|
|
|
|
|
|
|
Post::Post(QObject *parent) : Table(parent),
|
2018-01-10 06:08:19 +08:00
|
|
|
m_id(0), m_title(""), m_comments(new TableSet<Comment>(this))
|
2016-05-12 14:08:58 +08:00
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
2018-01-09 05:44:01 +08:00
|
|
|
|
|
|
|
|
NUT_IMPLEMENT_CHILD_TABLE(Post, Comment, comments)
|