Revision da565582
Von Christian Ehringfeld vor fast 9 Jahren hinzugefügt
samples/example/models/group.cpp | ||
---|---|---|
|
||
const QHash<QString, CuteEntityManager::Relation> Group::getRelations() const {
|
||
auto hash = QHash<QString, CuteEntityManager::Relation>();
|
||
//hash.insert("pupils", CuteEntityManager::Relation("pupils", MANY_TO_MANY));
|
||
hash.insert("persons", CuteEntityManager::Relation("persons", MANY_TO_MANY));
|
||
hash.insert("pupils", CuteEntityManager::Relation("pupils", RelationType::MANY_TO_MANY));
|
||
hash.insert("persons", CuteEntityManager::Relation("persons", RelationType::MANY_TO_MANY));
|
||
hash.insert("mainTeacher", CuteEntityManager::Relation("mainTeacher",
|
||
MANY_TO_ONE));
|
||
RelationType::MANY_TO_ONE));
|
||
return hash;
|
||
}
|
||
|
Auch abrufbar als: Unified diff
small update