Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision a873a3ba

Von Christian Ehringfeld vor etwa 8 Jahren hinzugefügt

  • ID a873a3ba62ec8906c8621fdc4d3c0a345427054a
  • Vorgänger fd67a7a7
  • Nachfolger b8bb1763

closes #614

Unterschiede anzeigen:

tests/em/tst_querybuilder.cpp
}
void QuerybuilderTest::testRefresh() {
e->clearCache();
auto persons = e->findAll<Person>(false);
QCOMPARE(persons.first()->getGroups().size(), 0);
QHash<QString, QVariant> attributes;
attributes["name"] = QString("Group Health");
QSharedPointer<Group> g = this->e->findEntityByAttributes<Group>(attributes, false, false);
QSharedPointer<Group> g = this->e->findEntityByAttributes<Group>(attributes, false,
false);
QCOMPARE(g->getPersons().count(), 0);
auto entity = g.objectCast<Entity>();
e->refresh(entity, true);

Auch abrufbar als: Unified diff