there is a stored tree, that is filtered using SQL-Expressions:
[Entity]
TEntity = class
private
FId: TGUID;
FNumber: Integer;
FParent: TEntity;
...
ObjectManager.Find<TEntity>
.Where(Linq.Sql<Integer>('{' + Dic.Entity.Parent.AssociationName + '}.{' + Dic.Entity.Parent.Number.PropName + '} = ?', 1))
.UniqueResult;
=> Raises:
Server-side error while retrieving data:
EPgNativeException: [FireDAC][Phys][PG][libpq] FEHLER: cross-database references are not implemented: a.parent_id.a.number
This example is simplified from our current implementation, that does not allow to use CreateAlias or stuff like that...
Any suggestions?