Tooth filling is not an adhesive and will not bond to the surface of the tooth. The cavity must have sufficient undercut for the material to "key" into position and to hold in place once hardened. Do not over fill cavity as any high points, protruding into the biting area, may cause temporary filling to crumble.
eBay