Nov. 23, 2018
1:30 p.m.
On Fri, Nov 23, 2018 at 1:25 PM iu136 via Pharo-users <pharo-users@lists.pharo.org> wrote:
You were right Esteban, finally I fixed it by manually executing the code below at Playground:
| repository | repository := VOMongoRepository database: 'tinyblog'. repository enableSingleton .
Even thought I was putting the above code at initialize method of TBMBlog, but I don't know why its never get executed!
Hi, Class initialisation methods are executed at loading. If you write the method the first time it will not execute it by default.
Thank you very much for your help!
-- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
-- Cyril Ferlicot https://ferlicot.fr