public function afterAdd($p, $m)
    {
        if ($p->titleForModel) {
            $m->title_field = $p->titleForModel;
        }

        foreach ($this->fieldsForModel as $field=>$def) {
            if ($m->hasField($field)) {
                continue;
            }

            // add new field
            $m->addField($field, $def);
        }
    }