When I add a new image to the Media Library, its data gets inserted into wp_posts table, and that seems fine.
When I use that image for the first time, in the sense that I insert it into a post, its parent ID gets updated to the post ID, and this seems fine as well.
However, when I afterwards try to insert this same image into a new post, using Media Library (and not by uploading it again), its parent ID doesn't get updated!
My question is: is this behavior expected?
This effects using get_children() and get_posts() for the purpose of getting a list of all attached images.