src/Model/Service/SqlService.php
public function exists($key, $value)
    {
        if (is_null($this->schema)) {
            throw SystemException::forNoSchema();
        }

        $search = $this
            ->resource
            ->search($this->schema->getName())
            ->addFilter($key . ' = %s', $value);

        return !!$search->getRow();
    }
public function exists($key, $value)
    {
        if (is_null($this->schema)) {
            throw SystemException::forNoSchema();
        }

        $search = $this
            ->resource
            ->search($this->schema->getName())
            ->addFilter($key . ' = %s', $value);

        return !!$search->getRow();
    }
public function exists ( $ key , $ value ) { if ( is_null ( $ this -> schema ) ) { throw SystemException :: forNoSchema ( ) ; } $ search = $ this -> resource -> search ( $ this -> schema -> getName ( ) ) -> addFilter ( $ key . ' = %s' , $ value ) ; return ! ! $ search -> getRow ( ) ; }
Checks to see if unique.0 already exists

@param *string $objectKey

@return bool
Checks to see if unique . 0 already exists