Revision 67639b75
Von Christian Ehringfeld vor fast 9 Jahren hinzugefügt
samples/example/models/person.cpp | ||
---|---|---|
auto hash = QHash<QString, CuteEntityManager::Relation>();
|
||
hash.insert("groups", CuteEntityManager::Relation("groups", MANY_TO_MANY,
|
||
QString("persons")));
|
||
hash.insert("groupsMainTeacher",
|
||
CuteEntityManager::Relation("groupsMainTeacher",
|
||
ONE_TO_MANY, "mainTeacher"));
|
||
return hash;
|
||
}
|
||
|
||
... | ... | |
void Person::addAddress(Address *address) {
|
||
this->addresses.append(QSharedPointer<Address>(address));
|
||
}
|
||
QList<QSharedPointer<Group> > Person::getGroupsMainTeacher() const {
|
||
return groupsMainTeacher;
|
||
}
|
||
|
||
void Person::setGroupsMainTeacher(const QList<QSharedPointer<Group> > &value) {
|
||
groupsMainTeacher = value;
|
||
}
|
||
|
Auch abrufbar als: Unified diff
not working example, caused by a bug in em