Revision abb9e8c5
Von Christian Ehringfeld vor fast 9 Jahren hinzugefügt
src/entitymanager.h | ||
---|---|---|
bool canPersistRelation(const Relation &relation, const RelationType &r,
|
||
const QVariant &var) const;
|
||
void persistManyToMany(const QSharedPointer<Entity> &entity, const Relation &r,
|
||
const QVariant &property);
|
||
QVariant &property);
|
||
QList<QHash<QString, QVariant> > findAllByAttributes(const
|
||
QSharedPointer<Entity> &entity,
|
||
bool ignoreID = false);
|
||
... | ... | |
Entity *e = EntityInstanceFactory::createInstance<T>();
|
||
if (e) {
|
||
QSharedPointer<Entity> ptr = QSharedPointer<Entity>(e);
|
||
e->setId(id);
|
||
ptr->setId(id);
|
||
return this->remove(ptr);
|
||
}
|
||
return false;
|
||
... | ... | |
|
||
};
|
||
}
|
||
Q_DECLARE_METATYPE(QSharedPointer<CuteEntityManager::Entity>)
|
||
#endif // ENTITYMANAGER_H
|
Auch abrufbar als: Unified diff
example not working - wip, maybe tomorrow