Selected columns from multiple tables with active record

$details = table1::find()

	->with(['table2' => function($query){


			          $query->select('tbl2_col1');


			       }


	       ])


	->limit(1)


	->all();

I want to fetch selected columns from multiple tables having relationship. I want to get column tbl1_col1 from table 1 and tbl2_col1 from table 2. How can I do that ?

I have defined relationship in models.