how to use behaviors() for filtering?

Hi,

is there a better solution to extend the behaviors() than "merge_array()"?




class myMainController extends Controller

{


	// dont override me!

	public function behaviors()

	{

		return [

			'access' => [ ... ]

		];

	}


	...


}



and my subController:




class subController extends myMainController

{

	// apply filterCheckUnique()

	// Problem: this call override the behaviors in myMainController()-Class

	public function behaviors()

	{

		return [

			'checkunique' => [

				'class' => 'app\components\ActionUniqueFilter',

				'only' =>  ['update'],

			

			],			

		];

	}

}