Same opening move as an aldol. The difference is that an ester has a leaving group — so the tetrahedral intermediate collapses instead of stopping.