Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement table aliasing and extent the builder to have multiple… #110

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

MDaskalovAtBE
Copy link

…joins with the same table name but different aliases

…s with the same table name but different aliases
@@ -169,7 +167,13 @@ public function getTable()
*/
public function setTable($table)
{
$this->table = (string) $table;
if ( ! (is_object($table) && is_a($table, Table::class))) {

Choose a reason for hiding this comment

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

Expected 0 spaces after opening bracket; 1 found

@@ -98,15 +99,21 @@ public function join(
$columns = [],
$joinType = null
) {
if (!isset($this->joins[$table])) {
if ( !(is_object($table) && is_a($table, Table::class))) {

Choose a reason for hiding this comment

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

Expected 0 spaces after opening bracket; 1 found

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.

None yet

2 participants