The “no attachments” thing isn’t explicit in Phantom Menace, but I guess it’s implied during that scene when Yoda lays out the “Sith pipeline”: Fear --> Anger --> Hate --> Suffering
The “fear” phase is definitely related to Anakin being afraid of losing his mom, because Yoda points out he’s afraid of losing her right before saying this.
I’ve seen lots of people say Yoda’s quote about fear is very profound. Personally, I never really understood it very well, because the connection between fear and anger doesn’t seem obvious to me. There’s certain specific types of fear and anger that could definitely be linked (the usual obvious example is xenophobia), but that’s obviously not what Yoda means here. He’s clearly talking about fear of loss.
But even fear of loss doesn’t exactly fit the context. Anakin misses his mom. Missing someone isn’t exactly the same as fear of losing them, which muddles this a bit.
Also… Anakin is 10. Of course he misses his mom.