Revision e8037987
Von Sebastian Diel vor mehr als 6 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());
|
||
QSharedPointer<Entity> e = EntityInstanceFactory::castQVariant(v);
|
||
if (e) {
|
||
this->insertRelationId(e.data(), map, i.key());
|
||
if (v.isValid()) {
|
||
QSharedPointer<Entity> e = EntityInstanceFactory::castQVariant(v);
|
||
if (e) {
|
||
this->insertRelationId(e.data(), map, i.key());
|
||
}
|
||
}
|
||
}
|
||
++i;
|
Auch abrufbar als: Unified diff
actually running, but still with the bug