Water go through trapdoors.

I recently watched a video of a drowned farm. it used trapdoors to stop water from going through, but when I tried water just flows through it. someone help me