MySQL: How think about Null insert to foreign key column
If the relationship for child B against A isn't mandatory then just allow NULL on the foreign key column. It's very common to do this.

Don't use a default record (like ID = 0) to match against when there shouldn't really be one, it will bring you more trouble that solutions (what data will this record have? what happens with NOT NULL columns?)