On May 22, 2014 at 3:48:42 , Nicolaas Thiemen Francken - Sunny Side Up (nfra...@gmail.com) wrote:
Hi EveryoneI know this is not really the place for little questions - but namespacing is kind of trendy right now ;-)Is it correct that there is no documentation around SS and namespaces?Right now I am trying to work out how to do a many_many relationship...------------------------------------------
Class MyClassWithoutNameSpaceprivate static $many_many = array("Industries" => "\DP\Industry");}------------------------------------------namespace DP;class Industry extends \DataObject {private static $belongs_many_many = array("MyClassWithoutNameSpaces" => "\MyClassWithoutNameSpace");
--
You received this message because you are subscribed to the Google Groups "SilverStripe Core Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to silverstripe-d...@googlegroups.com.
To post to this group, send email to silverst...@googlegroups.com.
Visit this group at http://groups.google.com/group/silverstripe-dev.
For more options, visit https://groups.google.com/d/optout.
I don’t namespace anything that extends DataModel, as I have not heard anything about this being supported. Particularly because the class name is stored in the database.