public function areDirty()
    {
        if (true === parent::areDirty()) {
            return true;
        }
        foreach ($this->getOriginalAll() as $collection) {
            if (true === $collection->isDirty()) {
                return true;
            }
        }
        return false;
    }
public function areDirty()
    {
        if (true === parent::areDirty()) {
            return true;
        }
        foreach ($this->getOriginalAll() as $collection) {
            if (true === $collection->isDirty()) {
                return true;
            }
        }
        return false;
    }
public function areDirty ( ) { if ( true === parent :: areDirty ( ) ) { return true ; } foreach ( $ this -> getOriginalAll ( ) as $ collection ) { if ( true === $ collection -> isDirty ( ) ) { return true ; } } return false ; }
Extended to also check for dirty states of has-many Collections.

{@inheritDoc}
Extended to also check for dirty states of has - many Collections .