src/ActiveDoctrine/Entity/Entity.php
/**
     * Check if this Entity has a value for $key. $key may be a simple
     * value, a related object, or a custom getter method.
     *
     * @param string $key The name of the key to check
     */
Check if this Entity has a value for $key. $key may be a simple
value, a related object, or a custom getter method.

@param string $key The name of the key to check
Check if this Entity has a value for $key . $key may be a simple value a related object or a custom getter method . @param string $key The name of the key to check
public function has($key)
    {
        $result = $this->get($key);
        if ($result instanceof EntityCollection && count($result) === 0) {
            return false;
        }
        return $result ? true : false;
    }
public function has ( $ key ) { $ result = $ this -> get ( $ key ) ; if ( $ result instanceof EntityCollection && count ( $ result ) === 0 ) { return false ; } return $ result ? true : false ; }
Check if this Entity has a value for $key.
Check if this Entity has a value for $key .
//an empty EntityCollection means no related entities