Revision 3ae1292f
Von Christian Ehringfeld vor mehr als 9 Jahren hinzugefügt
src/entitymanager.cpp | ||
---|---|---|
builder->generateManyToManyColumnName(entity),
|
||
entity->getProperty(entity->getPrimaryKey()).toLongLong());
|
||
auto listMap = this->convertQueryResult(q);
|
||
// QMetaProperty foreignProp;
|
||
// bool first = true;
|
||
QSharedPointer<Entity> e = QSharedPointer<Entity>();
|
||
for (int var = 0; var < listMap.size(); ++var) {
|
||
auto id = listMap.at(var).value(builder->generateManyToManyColumnName(
|
||
... | ... | |
} else {
|
||
e = this->findById(id.toLongLong(), EntityHelper::getClassname(secEntityPtr.data()));
|
||
}
|
||
// if(first) {
|
||
// foreignProp = EntityHelper::mappedProperty(relation,e);
|
||
// first = false;
|
||
// }
|
||
if(e) {
|
||
EntityHelper::addEntityToListProperty(entity,e,property);
|
||
//if(foreignProp.isValid()) {
|
||
// EntityHelper::addEntityToListProperty(e,entity,foreignProp);
|
||
//}
|
||
}
|
||
}
|
||
} else {
|
Auch abrufbar als: Unified diff
cleanup