public function __isset($property)
    {
        if ($property = $this->getEntityDescription()->getProperty($property)) {
            $name = $property->getName();

            if ($this->_data->offsetExists($name)) {
                //if a property is one to one or many to one make sure the value
                //actually exists in the database
                $value = $this->_data->offsetGet($name);

                if ($value instanceof AnDomainEntityProxy) {
                    if ($property->isRelationship() && $property->isOneToOne()) {
                        if (!$value->getObject()) {
                            $this->getRepository()->getCommandChain()->disable();
                            $this->set($name, null);
                            $this->getRepository()->getCommandChain()->enable();

                            return false;
                        }
                    }
                }

                return true;
            }
        }

        return false;
    }
public function __isset($property)
    {
        if ($property = $this->getEntityDescription()->getProperty($property)) {
            $name = $property->getName();

            if ($this->_data->offsetExists($name)) {
                //if a property is one to one or many to one make sure the value
                //actually exists in the database
                $value = $this->_data->offsetGet($name);

                if ($value instanceof AnDomainEntityProxy) {
                    if ($property->isRelationship() && $property->isOneToOne()) {
                        if (!$value->getObject()) {
                            $this->getRepository()->getCommandChain()->disable();
                            $this->set($name, null);
                            $this->getRepository()->getCommandChain()->enable();

                            return false;
                        }
                    }
                }

                return true;
            }
        }

        return false;
    }
public function __isset ( $ property ) { if ( $ property = $ this -> getEntityDescription ( ) -> getProperty ( $ property ) ) { $ name = $ property -> getName ( ) ; if ( $ this -> _data -> offsetExists ( $ name ) ) { //if a property is one to one or many to one make sure the value //actually exists in the database $ value = $ this -> _data -> offsetGet ( $ name ) ; if ( $ value instanceof AnDomainEntityProxy ) { if ( $ property -> isRelationship ( ) && $ property -> isOneToOne ( ) ) { if ( ! $ value -> getObject ( ) ) { $ this -> getRepository ( ) -> getCommandChain ( ) -> disable ( ) ; $ this -> set ( $ name , null ) ; $ this -> getRepository ( ) -> getCommandChain ( ) -> enable ( ) ; return false ; } } } return true ; } } return false ; }
Check if a property has been set.

@param string $property

@return bool
Check if a property has been set .