While schools are regarded as the main educators of children, they are not the only educators. For before children go to school they are usually at home and are being educated by their parents, whether this is intentional or not, as children observe what is around them and what is occurring.
So all parents have a duty to their children in the way they conduct themselves when in front of their children, for what children hear and see they will copy. However, there may be other factors, for they may go to a nursery and pre-school and also the community environment in which they live.
All of these are factors in how children behave, however, in many instances their behaviour could be tempered by how they are disciplined by family members.
So all in all, while teachers have their part to play, so do parents and all factors need to be taken into consideration.