[eluser]WanWizard[/eluser]
Read the manual on relations.
Datamapper doesn't do anything automagically, If you want to save a relation, you have to explicitly do so:
Code:
$mother = new Mother();
$category = new Category(6); // as an example, load existing category with id 6
// add some data
$mother->fieldA = 'valueA';
$mother->fieldB = 'valueB';
// save the mother record, and relate it to the loaded category
$mother->save($category);