newsletter-bundle/src/Resources/contao/models/NewsletterRecipientsModel.php
public static function findByEmailAndPids($strEmail, $arrPids, array $arrOptions=array())
	{
		if (empty($arrPids) || !\is_array($arrPids))
		{
			return null;
		}

		$t = static::$strTable;

		return static::findBy(array("$t.email=? AND $t.pid IN(" . implode(',', array_map('\intval', $arrPids)) . ")"), $strEmail, $arrOptions);
	}
public static function findByEmailAndPids($strEmail, $arrPids, array $arrOptions=array())
	{
		if (empty($arrPids) || !\is_array($arrPids))
		{
			return null;
		}

		$t = static::$strTable;

		return static::findBy(array("$t.email=? AND $t.pid IN(" . implode(',', array_map('\intval', $arrPids)) . ")"), $strEmail, $arrOptions);
	}
Find recipients by their e-mail address and parent ID

@param string $strEmail   The e-mail address
@param array  $arrPids    An array of newsletter channel IDs
@param array  $arrOptions An optional options array

@return Collection|NewsletterRecipientsModel[]|NewsletterRecipientsModel|null A collection of models or null if there are no recipients