eZ\Publish\Core\Persistence\Doctrine\SelectDoctrineQuery::from PHP Method

from() public method

from() accepts an arbitrary number of parameters. Each parameter must contain either the name of a table or an array containing the names of tables.. Each call to from() appends tables to the list of tables that will be used in the query. Example: the following code will produce the SQL SELECT id FROM table_name $q->select( 'id' )->from( 'table_name' );
public from ( ) : eZ\Publish\Core\Persistence\Database\SelectQuery
return eZ\Publish\Core\Persistence\Database\SelectQuery a pointer to $this
    public function from()
    {
        $args = $this->parseArguments(func_get_args());
        foreach ($args as $tableName) {
            $this->parts['from'][] = array('table' => $tableName, 'type' => 'FROM');
        }
        return $this;
    }