src/db/Migration.php
public function foreignKeyCheck ($check = true)
		{
			$check = intval(boolval($check));
			$this->db->createCommand("SET FOREIGN_KEY_CHECKS=$check")->execute();
		}
public function foreignKeyCheck ($check = true)
		{
			$check = intval(boolval($check));
			$this->db->createCommand("SET FOREIGN_KEY_CHECKS=$check")->execute();
		}
public function foreignKeyCheck ( $ check = true ) { $ check = intval ( boolval ( $ check ) ) ; $ this -> db -> createCommand ( "SET FOREIGN_KEY_CHECKS=$check" ) -> execute ( ) ; }
Sets foreign key check to 1 or 0.

@param bool $check
Sets foreign key check to 1 or 0 .