My son, do not forget my torah, but let your heart keep my mitzvot...
Proverbs 3:1

"Don't forget my laws" is the same as "let your heart keep my commandments". See Deuteronomy 32:46. A godly people hears the words of Moses, hides them in their hearts, and teaches their children to do the same.

Consider in the light of Matthew 10:37 - "Whoever loves father and mother more than me is not worthy of me." In other words, if your parents give you a different law than what God has given, then God's instructions take precedence. If you value your child's feelings and temporal success more than their relationship with God, then you will lose both.