for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ZfcUser\Validator;
class RecordExists extends AbstractRecord
{
public function isValid($value)
$valid = true;
$this->setValue($value);
$result = $this->query($value);
if (!$result) {
$valid = false;
$this->error(self::ERROR_NO_RECORD_FOUND);
}
return $valid;