Does silverstripe have recursive data relationships? -
does silverstripe have recursive data relationships? tried implement , gives no errors page blank on modeladmin.
example has_one recursive relation on product itself:
class product extends dataobject { private static $db = array( 'name' => 'varchar', 'productcode' => 'varchar', 'price' => 'currency' ); private static $has_one = array( 'product' => 'product' ); }
yes, possible.
there can problems when doing many_many relationships, though.
Comments
Post a Comment