source/Spiral/ORM/Entities/Relations/Traits/SyncedTrait.php
protected function isSynced(RecordInterface $inner, RecordInterface $outer): bool
    {
        if (empty($inner->primaryKey()) || empty($outer->primaryKey())) {
            //Parent not saved
            return false;
        }

        //Comparing FK values
        return $outer->getField(
                $this->key(Record::OUTER_KEY)
            ) == $inner->getField(
                $this->key(Record::INNER_KEY)
            );
    }
protected function isSynced(RecordInterface $inner, RecordInterface $outer): bool
    {
        if (empty($inner->primaryKey()) || empty($outer->primaryKey())) {
            //Parent not saved
            return false;
        }

        //Comparing FK values
        return $outer->getField(
                $this->key(Record::OUTER_KEY)
            ) == $inner->getField(
                $this->key(Record::INNER_KEY)
            );
    }
protected function isSynced ( RecordInterface $ inner , RecordInterface $ outer ) : bool { if ( empty ( $ inner -> primaryKey ( ) ) || empty ( $ outer -> primaryKey ( ) ) ) { //Parent not saved return false ; } //Comparing FK values return $ outer -> getField ( $ this -> key ( Record :: OUTER_KEY ) ) == $ inner -> getField ( $ this -> key ( Record :: INNER_KEY ) ) ; }
If record not synced or can't be synced. Only work for PK based relations.

@param RecordInterface $inner
@param RecordInterface $outer

@return bool
If record not synced or can t be synced . Only work for PK based relations .