You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
web/src/Model/CertificateQuery.php

32 lines
785 B
PHP

<?php
namespace Eater\Glim\Model;
use Eater\Glim\Model\Base\CertificateQuery as BaseCertificateQuery;
/**
* Skeleton subclass for performing query and update operations on the 'Certificate' table.
*
*
*
* You should add additional methods to this class to meet the
* application requirements. This class will only be generated as
* long as it does not already exist in the output directory.
*
*/
class CertificateQuery extends BaseCertificateQuery
{
/**
* @param User $user
* @param string $name
* @throws \Propel\Runtime\Exception\PropelException
* @return Certificate
*/
public function findOneByUserAndName($user, $name)
{
return $this->filterByName($name)
->filterByUser($user)
->findOne();
}
}