Index: trunk/core/units/relationship/relationship_config.php =================================================================== diff -u -N -r5379 -r6093 --- trunk/core/units/relationship/relationship_config.php (.../relationship_config.php) (revision 5379) +++ trunk/core/units/relationship/relationship_config.php (.../relationship_config.php) (revision 6093) @@ -77,14 +77,14 @@ 'ItemSQLs' => Array( '' => 'SELECT %1$s.* %2$s FROM %1$s #ITEM_JOIN#',), 'Fields' => Array( - 'RelationshipId' => Array(), - 'SourceId' => Array('type'=>'int'), - 'TargetId' => Array('type'=>'int'), - 'SourceType' => Array('type'=>'int','not_null'=>1,'default'=>0), - 'TargetType' => Array('type'=>'int','not_null'=>1,'default'=>0), - 'Type' => Array('type'=>'int','formatter'=>'kOptionsFormatter','options'=>Array(1=>'la_Reciprocal',0=>'la_OneWay'),'not_null'=>1,'default'=>0,'use_phrases'=>1), - 'Enabled' => Array('type'=>'int','formatter'=>'kOptionsFormatter','options'=>Array(0=>'la_Disabled',1=>'la_Enabled'),'not_null'=>1,'default'=>1,'use_phrases'=>1), - 'Priority' => Array('type'=>'int','not_null'=>1,'default'=>0), + 'RelationshipId' => Array(), + 'SourceId' => Array('type'=>'int', 'required' => 1, 'default' => 0), + 'TargetId' => Array('type'=>'int', 'required' => 1, 'default' => ''), + 'SourceType' => Array('type'=>'int','not_null'=>1,'default'=>0), + 'TargetType' => Array('type'=>'int','not_null'=>1,'default'=>0), + 'Type' => Array('type'=>'int','formatter'=>'kOptionsFormatter', 'required' => 1, 'options'=>Array(1=>'la_Reciprocal',0=>'la_OneWay'),'not_null'=>1,'default'=>0,'use_phrases'=>1), + 'Enabled' => Array('type'=>'int','formatter'=>'kOptionsFormatter','options'=>Array(0=>'la_Disabled',1=>'la_Enabled'),'not_null'=>1,'default'=>1,'use_phrases'=>1), + 'Priority' => Array('type'=>'int','not_null'=>1,'default'=>0), ), 'VirtualFields' => Array( 'ItemName' => Array(), 'ItemType' => Array(),