ddl sync - works with id and hasOne