public static function findByNameSliderId( $name, $sliderId ) {

		return Slide::find()->where( 'sliderId=:id', [ ':id' => $sliderId ] )->andwhere( 'name=:name', [ ':name' => $name ] )->one();
	}
public static function findByNameSliderId( $name, $sliderId ) {

		return Slide::find()->where( 'sliderId=:id', [ ':id' => $sliderId ] )->andwhere( 'name=:name', [ ':name' => $name ] )->one();
	}
public static function findByNameSliderId ( $ name , $ sliderId ) { return Slide :: find ( ) -> where ( 'sliderId=:id' , [ ':id' => $ sliderId ] ) -> andwhere ( 'name=:name' , [ ':name' => $ name ] ) -> one ( ) ; }
Find and return the slide associated with given name and slider id.

@param string $name
@param integer $sliderId
@return Slide[]
Find and return the slide associated with given name and slider id .