Skip to content

Add queries for lazy loading relationships#556

Closed
ItzNotABug wants to merge 7 commits intomainfrom
add-queries
Closed

Add queries for lazy loading relationships#556
ItzNotABug wants to merge 7 commits intomainfrom
add-queries

Conversation

@ItzNotABug
Copy link
Copy Markdown
Contributor

foreach ($queries as $query) {
if ($query->getMethod() === self::TYPE_SELECT) {
foreach ($query->getValues() as $value) {
if (str_contains($value, '.')) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A non relationship regular attribute can contain dots as well

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a check later down in the get related documents method that checks for key sided selects.

@ItzNotABug ItzNotABug closed this May 2, 2025
@ItzNotABug ItzNotABug deleted the add-queries branch May 2, 2025 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants