During the _fetchAll() service call at the Server/Service end, as it is running through QxSqlQueryBuilder::init code, it ends up deep into the call stack during the nested calls to QxSqlRelation::init for all the dependant tables/classes, it eventually ends up hitting an assertion in the .insert() call during the loop...
- Code: Select all
for (long l = 0; l < lCount; ++l) { if ((p = isValid_SqlRelation(l))) { m_lstSqlRelation.insert(p->getKey(), p->getSqlRelation()); } }
- Code: Select all
inline bool QxCollection<Key, Value>::insert(const Key & key, const Value & value)
{
->>> qAssert(! exist(key));
return m_qxCollection.template get<0>().push_back(type_pair_key_value(key, value)).second;
}
...because the table's field name apparently already exists in the m_qxCollection.
I have attached a TXT file of the full call-stack so you can see how deep it got, and how the dependancies are setup.
I apprecaite this might not be enough info for you to go on, so if you need anything else please ask. I have attempted (am still attempting) to debug through the QxORM code that is creating these QxSqlRelation dependancies to see if I can work out why, but if you know what might be causing this any help would be appreciated.
Steve