common/models/resources/Option.php
public static function findByCategoryId( $categoryId ) {

		$optionTable = CoreTables::getTableName( CoreTables::TABLE_OPTION );

		return self::find()->where( "$optionTable.categoryId=:id", [ ':id' => $categoryId ] )->all();
	}
public static function findByCategoryId( $categoryId ) {

		$optionTable = CoreTables::getTableName( CoreTables::TABLE_OPTION );

		return self::find()->where( "$optionTable.categoryId=:id", [ ':id' => $categoryId ] )->all();
	}
public static function findByCategoryId ( $ categoryId ) { $ optionTable = CoreTables :: getTableName ( CoreTables :: TABLE_OPTION ) ; return self :: find ( ) -> where ( "$optionTable.categoryId=:id" , [ ':id' => $ categoryId ] ) -> all ( ) ; }
Return the options available for given category id.

@param integer $categoryId
@return Option[]
Return the options available for given category id .