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

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -