Tom Holder

Results 26 comments of Tom Holder

Why is travis building against 5.6 and hhvm? This seems pointless. This is an important update to get working with Laravel6, would be good if it could be merged.

I noticed there wasn't anything on this thread for a while, so perhaps there is a proper recommended solution, but in case not, here is my solution: ``` // If...

Hey Coen, whilst this is a shame to hear, I fully understand the position on it. We are actively looking at ways to move away from Shanty but refactoring all...

I think I've found that it has to be done as follows: $c = $company->categories->new(); $c->name = 'My Cat'; $company->categories->addDocument($c); $company->categories->save(); $a = $c->access->new(); $a->hasAccess = true; $c->access->addDocument($a); $c->access->save(); This...

Hey, My bootstrap looks like: ``` php protected function _initDb() { $config = Zend_Registry::get('config'); //Setup mongo $connection = new Shanty_Mongo_Connection($config->mongo); Shanty_Mongo::addMaster($connection); Model_Mongo_Base::setDatabase($config->database); } ``` Then, in my config I simply...

Hi Kevin, Not really it's got too much sensitive stuff in. Sorry that didn't post right though, it's just literally two config elements mongo (the connection string) and database (the...

Hi Kevin, Sorry that's just a base class I inherit all my mongo doc classes from to give some shared functionality. ``` php class Model_Mongo_Base extends Shanty_Mongo_Document { protected static...

This is the most basic you need: ``` php class User extends Shanty_Mongo_Document { protected static $_db = 'forum'; protected static $_collection = 'user'; } ``` If that won't connect...

Cool, I've had a quick look and can't immediately see how I would implementing it cascading. For now I actually don't need this so I will leave it. Hope you...

This is very odd! I implemented what you suggested and it appears to work. However, when I came to write test I used the same method of incrementing a hook...