ce and kind of arbirary, since some Query
>> methods decide to execute at one point or another.
>>
>> Flask-SQLAlchemy therefore has to decide where it wants to go with this
>> direction, and there are options, including sticking with the legacy query
>> /
del for future releases. From SQLAlchemy's
>> point of view, the Query was always not well thought out and was
>> inconsistent with how Core worked, and I've wanted for years to resolve that
>> problem.
>>
>> - mike
>>
>>
>>
>>
my's point of view, the Query was always not well thought out and
> was inconsistent with how Core worked, and I've wanted for years to resolve
> that problem.
>
> - mike
>
>
>
>
> On Thursday, February 25, 2021 at 2:21:43 PM UTC-8 Mike Bayer wrote:
>
>
> this will
I've reverted entirely some changes to AppenderQuery that made it work
>> more in 2.0 style. As Query is going to be present in 2.0, "dynamic"
>> relationships will remain also as legacy. They are superseded by explicit
>> use of the with_parent() filtering
ering construct.
>
>
>
> On Thu, Feb 25, 2021, at 3:25 PM, Ahmed wrote:
>
> Hello,
>
> It seems that SQLAlchemy 1.4.0b3 ignores relationship() query_class
> parameter. Here's the snippet that works with 1.3 but doesn't with 1.4:
>
> class Parent(db.Model):
>
superseded by explicit use
of the with_parent() filtering construct.
On Thu, Feb 25, 2021, at 3:25 PM, Ahmed wrote:
> Hello,
>
> It seems that SQLAlchemy 1.4.0b3 ignores relationship() query_class
> parameter. Here's the snippet that works with 1.3 but doesn't with 1.4:
>
this is a bug. however, the Query object is legacy. what is your actual use
case? there are better ways to achieve them now.
On Thu, Feb 25, 2021, at 3:25 PM, Ahmed wrote:
> Hello,
>
> It seems that SQLAlchemy 1.4.0b3 ignores relationship() query_class
> parameter. Here's
Hello,
It seems that SQLAlchemy 1.4.0b3 ignores relationship() query_class
parameter. Here's the snippet that works with 1.3 but doesn't with 1.4:
class Parent(db.Model):
__tablename__ = "todo"
id = db.Column(db.Integer, primary_key=True)
# ... Column mappings