Revision dcf04089
Von Christian Ehringfeld vor mehr als 7 Jahren hinzugefügt
src/querybuilder.cpp | ||
---|---|---|
if ((r.getType() == RelationType::MANY_TO_ONE && props.contains(i.key()))
|
||
|| (r.getType() == RelationType::ONE_TO_ONE && r.getMappedBy().isEmpty())) {
|
||
auto v = props.value(i.key()).read(entity.data());
|
||
if (v.isValid()) {
|
||
QSharedPointer<Entity> e = EntityInstanceFactory::castQVariant(v);
|
||
if (e) {
|
||
this->insertRelationId(e.data(), map, i.key());
|
||
}
|
||
QSharedPointer<Entity> e = EntityInstanceFactory::castQVariant(v);
|
||
if (e) {
|
||
this->insertRelationId(e.data(), map, i.key());
|
||
}
|
||
}
|
||
++i;
|
Auch abrufbar als: Unified diff
Revert "Merge branch 'master' of ssh://synlos.net/entitymanager"
This reverts commit 279f967de7237e947cb3d9639219e3eb583b8f2b, reversing
changes made to 6d3b13bc614a6ab900da03196265768c8a8eb5e3.