Set leftTable

@param \TechPromux\DynamicQueryBundle\Entity\MetadataTable $leftTable

@return MetadataRelation
970034
public function setLeftTable(\TechPromux\DynamicQueryBundle\Entity\MetadataTable $leftTable)
    {
        $this->leftTable = $leftTable;

        return $this;
    }
1088754
public function setTable($table){

		//put this in try...catch block for better error handling
		try{

			//check if from is empty
			if ( empty($table)) 
			{
				//throw new exception
				throw new MySQLException("Invalid argument passed for table name", 1);

			}

		}

		//diplay error message
		catch(MySQLException $MySQLExceptionObject){

			//display error message
			$MySQLExceptionObject->errorShow();

		}		

		//set the protected $from value
		$this->froms = $table;
		if(!isset($this->fields[$table])) $this->fields[$table] = array("*");
		return $this;
			
	}
185519
public function leftJoinOnTo($source, $table, $on)
    {
        $this->join('LEFT', $source, $table, $on);

        return $this;
    }
1012445
public function setCurrentTable(Table $table)
    {
        $this->fieldsCacheFile = $this->fieldsCacheDir . DIRECTORY_SEPARATOR . '.table.' . $table->getFullTableName() . '.cache';

        if (file_exists($this->fieldsCacheFile)) {
            try {
                $this->fieldsCache = include $this->fieldsCacheFile;
                $this->fieldsCache = unserialize($this->fieldsCache);
            } catch (\Exception $e) {
                $this->fieldsCache = [];
            }
        }else if(!is_null($this->table) && $this->table->getTableName() !== $table->getTableName()) {
            $this->fieldsCache = [];
        }

        $this->table = $table;

        return $this;
    }
1298049
public function setBannedWordsTable($table){
        if(is_string($table)){
            $this->banned_words_table = filter_var($table, FILTER_SANITIZE_STRING);
        }
        return $this;
    }
463936
public function left ( $count = 0 ) {
        $this->_currentPosition = array(
                                        $this->_currentPosition[0] - $count,
                                        $this->_currentPosition[1],
                                       );
        return $this;
    }
24239
public function addMetadata(\TechPromux\DynamicQueryBundle\Entity\Metadata $metadata)
    {
        $this->metadatas[] = $metadata;

        return $this;
    }
790489
public function apply(Builder $table)
    {
        if ($this->getRightValue() == self::NOT_SET_VALUE) {
            return $table;
        }

        $table = $table->where(
            $this->getLeftValue(),
            $this->getOperator(),
            $this->getRightValue()
        );
        return $table;
    }
1329993
public function setField(\TechPromux\DynamicQueryBundle\Entity\MetadataField $field)
    {
        $this->field = $field;

        return $this;
    }
1200403
public function setRawTable($table)
    {
        $this->table = $table;
        $this->fullTable = $this->db->getTable($this->table);

        return $this;
    }
920672
public function leftOuterJoin($table, $constraint, $tableAlias = null)
    {
        return $this->addJoinSource('LEFT OUTER', $table, $constraint, $tableAlias);
    }
112952
public function setEntityTable($entityTable)
    {
        if (!is_string($entityTable) || empty($entityTable)) {
            throw new \InvalidArgumentException('The entity table is invalid.');
        }
        $this->entityTable = $entityTable;

        return $this;
    }
383971
public function addLeftRelation(\TechPromux\DynamicQueryBundle\Entity\MetadataRelation $leftRelation)
    {
        $this->leftRelations[] = $leftRelation;

        return $this;
    }
181345
public function setTable(string $table): self
    {
        $this->table = $this->agent->escapeIdentifier($table);

        return $this;
    }
724377
public function setMetaData($metaData) {
		if (is_array($metaData) && empty($metaData)) {
			$this->metaData = new \stdClass;
		} else {
			$this->metaData = $metaData;
		}

		return $this;
	}
893918
public void setLeftTableModel(TableModel model)
   {
      TableModel old = m_leftTable.getModel();
      m_leftTable.setModel(model);
      firePropertyChange("leftTableModel", old, model);
   }
1211090
public function setUserTable($table = null) {
		if ($table === null) {
			$this->UserTable = $this->getController()->{$this->getController()->modelClass};
		} else {
			if (is_object($table)) {
				if (!is_a($table, Table::class)) {
					throw new RuntimeException('Passed object is not of type \Cake\ORM\Table!');
				}
				$this->UserTable = $table->getAlias();
			}
			if (is_string($table)) {
				$this->UserTable = TableRegistry::get($table);
			}
		}

		$this->getController()->set('userTable', $this->UserTable->getAlias());
	}