Skip to content
This repository was archived by the owner on Nov 5, 2023. It is now read-only.

Support for joins and converting arrays to queries.. #20

Merged
merged 16 commits into from
Dec 11, 2016
Merged

Conversation

dantleech
Copy link
Contributor

No description provided.

@@ -36,6 +36,7 @@ public function supports(string $classFqn): bool
public function getCapabilities(): Capabilities
{
return Capabilities::create([
'can_join' => false,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should be can_query_join ... ?

@@ -0,0 +1,135 @@
<?php

namespace Psi\Component\ObjectAgent\Query\Converter;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

dec

$selects = [];
foreach ($query->getSelects() as $selectName => $selectAlias) {
$select = $selectName . ' ' . $selectAlias;
if (is_int($selectName)) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Comment and test

@dantleech dantleech merged commit b3630f4 into master Dec 11, 2016
@dantleech dantleech deleted the select_join branch December 11, 2016 16:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant