#silverstripe IRC Log

IRC log for 21 February 2016

All timestamps are in UTC.

1: [00:09:10] * Stomach has joined #silverstripe
2: [00:20:14] <hailwood> Hey guys, anyone know why session_id() would be returning ""?
3: [00:47:13] <hailwood> And now, just cause it can, it's no longer "" ...
4: [00:52:45] * Azure|dc quit (Remote host closed the connection)
5: [00:54:48] * spronka has joined #silverstripe
6: [01:04:04] * [Fate] quit (Ping timeout: 248 seconds)
7: [01:05:27] * [Fate] has joined #silverstripe
8: [01:19:50] * Stomach quit (Quit: zzz)
9: [01:33:53] * [Fate] quit (Ping timeout: 250 seconds)
10: [01:34:57] * [Fate] has joined #silverstripe
11: [01:40:58] * spronka quit (Quit: My Mac has gone to sleep. ZZZzzz…)
12: [01:43:45] <hailwood> Is it possible to use versioning with only one stage? so basically I only want to end up with MyDataObject and MyDataObject_versions
13: [02:25:58] * spronka has joined #silverstripe
14: [02:58:01] * spronka quit (Quit: My Mac has gone to sleep. ZZZzzz…)
15: [03:26:36] * spronka has joined #silverstripe
16: [03:38:56] * spronka quit (Quit: My Mac has gone to sleep. ZZZzzz…)
17: [05:04:03] * spronka has joined #silverstripe
18: [05:44:26] * Azure has joined #silverstripe
19: [05:48:48] * spronka quit (Quit: My Mac has gone to sleep. ZZZzzz…)
20: [05:56:58] * spronka has joined #silverstripe
21: [06:22:30] * Stomach has joined #silverstripe
22: [06:33:43] * Stomach quit (Quit: zzz)
23: [06:50:59] * Stomach has joined #silverstripe
24: [07:11:32] * Stomach quit (Quit: zzz)
25: [07:47:24] * gelignite has joined #silverstripe
26: [07:54:57] * spronka quit (Quit: My Mac has gone to sleep. ZZZzzz…)
27: [08:02:49] * Stomach has joined #silverstripe
28: [08:18:40] * spronka has joined #silverstripe
29: [08:51:55] * Stomach quit (Quit: zzz)
30: [09:26:04] <hailwood> We're quiet in here today. Must be the sunday effect.
31: [09:26:18] <hailwood> Anyone know how we can output a literal $ in templates?
32: [09:27:04] <ss23> Probably just \%
33: [09:27:05] <ss23> um
34: [09:27:06] <ss23> \$*
35: [09:30:37] <hailwood> ah, found it ${Rest of my string}
36: [09:30:59] <hailwood> or ^ works too
37: [09:31:31] <hailwood> Honestly I'd much prefer if variables are used outside of an <% block %> then they should be {$Var} not just $Var
38: [09:34:07] <hailwood> righto, so \$something if "something" should be a literal string ${$something} if we want a $ sign before the variable output of $something.. uhhuh
39: [10:05:51] * TRB143 quit (Remote host closed the connection)
40: [10:39:15] * spronka quit (Quit: My Mac has gone to sleep. ZZZzzz…)
41: [11:15:20] <ss-helper> Silverstripes default homepage - http://stackoverflow.com/questions/35518369/silverstripes-default-homepage
42: [11:16:02] * spronka has joined #silverstripe
43: [11:19:17] * CodeTrap has joined #silverstripe
44: [11:54:06] * spronka quit (Quit: My Mac has gone to sleep. ZZZzzz…)
45: [12:10:51] * spronka has joined #silverstripe
46: [12:35:59] * Shrike_Finland has joined #silverstripe
47: [12:41:12] * spronka quit (Quit: My Mac has gone to sleep. ZZZzzz…)
48: [13:25:39] * Shrike_Finland quit (Quit: Leaving.)
49: [13:54:07] * TRB143 has joined #silverstripe
50: [13:54:07] * TRB143 quit (Client Quit)
51: [13:54:17] * TRB143 has joined #silverstripe
52: [13:54:17] * TRB143 quit (Client Quit)
53: [13:54:28] * TRB143 has joined #silverstripe
54: [14:09:56] * Shrike_Finland has joined #silverstripe
55: [14:10:41] * Shrike_Finland quit (Client Quit)
56: [15:16:58] <hailwood> Hey guys, if I have a HasMany on my dataobject and I can $this->MyHasManyRelation()->toArray() ... does SS cache the MyHasManyRelation() results? if so can I clear them?
57: [18:09:35] * Audlex- has joined #silverstripe
58: [18:12:03] * Audlex quit (Ping timeout: 252 seconds)
59: [18:17:07] * Stomach has joined #silverstripe
60: [18:38:38] * Stomach quit (Quit: zzz)
61: [18:48:10] * jules0x has joined #silverstripe
62: [19:07:17] * DimiStripe_alt has joined #silverstripe
63: [19:07:20] * Dudinka has joined #silverstripe
64: [19:07:24] <Dudinka> hey guys
65: [19:07:41] <Dudinka> any reason I cannot extend DataObject with more fields anymore?
66: [19:07:45] * Stomach has joined #silverstripe
67: [19:08:05] <Dudinka> I want to extend *all* data objects I create, in order to keep track who created it and who edited it last
68: [19:08:32] <Dudinka> so I had an extension to do this, but it stopped working after some update (dunno which one)
69: [19:09:04] <Dudinka> any hope for it to start working again?
70: [19:09:39] <Dudinka> tried with $db, $has_one, but none of them works anymore...
71: [19:10:04] <Dudinka> I use only FW
72: [19:10:18] <Dudinka> with 3.2.1 doesn't work, 3.3.rc2 also
73: [19:12:42] <Dudinka> and I don't really like the idea to apply same extension to shitload of data objects
74: [19:12:50] <Dudinka> because it's like - ALL of them
75: [19:20:21] * hailwood quit (Remote host closed the connection)
76: [19:29:05] <Dudinka> anyone?
77: [19:45:30] * helenclarko has joined #silverstripe
78: [19:57:44] * Stomach quit (Quit: zzz)
79: [19:58:57] * Firesphere has joined #silverstripe
80: [20:00:28] * Stomach has joined #silverstripe
81: [20:01:55] * DimiStripe quit (Quit: DimiStripe)
82: [20:01:55] * DimiStripe_alt is now known as DimiStripe
83: [20:04:04] * Firesphere quit (Ping timeout: 240 seconds)
84: [20:05:31] * Firesphere has joined #silverstripe
85: [20:17:58] * leomeloxp quit (Ping timeout: 255 seconds)
86: [20:21:47] * spronk has joined #silverstripe
87: [20:24:53] <Dudinka> fcuk
88: [20:24:57] <Dudinka> all asleep?
89: [20:27:52] * Firesphere quit (Ping timeout: 252 seconds)
90: [20:28:55] * Firesphere has joined #silverstripe
91: [20:43:47] * Firesphere quit (Ping timeout: 248 seconds)
92: [20:54:59] * Firesphere has joined #silverstripe
93: [20:58:30] <Stomach> nope
94: [20:59:49] <Dudinka> great :)
95: [21:00:14] <Dudinka> why an extension to DO stopped working sometime during upgrade?
96: [21:04:04] * Firesphere quit (Read error: Connection reset by peer)
97: [21:04:45] * jonners99 has joined #silverstripe
98: [21:05:37] <Dudinka> or, to be more specific
99: [21:06:07] <Dudinka> why DataExtension won't add $has_one to each DataObject?
100: [21:06:10] <Dudinka> anyone?
101: [21:06:15] <Dudinka> Stomach?
102: [21:06:40] <Stomach> could be heaps of reasons
103: [21:06:48] <Stomach> !paste
104: [21:06:48] <ss-helper> Please paste your code using something like http://kopy.io/ or http://www.sspaste.com/ or https://gist.github.com/ and then paste the link here.
105: [21:08:40] <Dudinka> http://www.sspaste.com/paste/show/56ca274c7da6a
106: [21:10:52] * Firesphere has joined #silverstripe
107: [21:11:19] * leomeloxp has joined #silverstripe
108: [21:11:38] <Dudinka> good enough?
109: [21:15:20] <Dudinka> tried with $db also (CreatorID => Int)
110: [21:15:24] <Dudinka> no luck
111: [21:15:43] <ss-helper> Re: Redirect old links to existing posts on the forums - https://groups.google.com/d/msg/silverstripe-dev/TvPQTuKhq6c/NGDb16heAgAJ
112: [21:17:03] * DanaeNZ has joined #silverstripe
113: [21:18:52] * jonners99 quit ()
114: [21:19:48] <Dudinka> Stomach?
115: [21:20:19] <Stomach> Dudinka - that looks fine :\
116: [21:20:25] <Dudinka> yeah I know
117: [21:20:31] <Dudinka> but it won't work
118: [21:20:44] <Dudinka> funny thing is
119: [21:21:02] <Dudinka> I have similar extension to some particular data objects
120: [21:21:07] <Dudinka> and it keeps working
121: [21:21:24] <Dudinka> but even if I apply this one to specific DO
122: [21:21:32] <Dudinka> dev/build won't make fields
123: [21:23:20] <Dudinka> that's the thing that makes me wonder
124: [21:24:57] <Dudinka> this one stopped working out of the blue Stomach
125: [21:25:09] <Dudinka> but it's not the only one
126: [21:25:14] <Dudinka> others kept working
127: [21:25:39] <DanaeNZ> lawd what a weekend
128: [21:25:52] <DanaeNZ> pro tip: don't accept alcohol from Russians
129: [21:26:49] <Dudinka> DanaeNZ: there's a joke about it...
130: [21:27:06] <Dudinka> yesterday, I drank with Russians... I wish I died
131: [21:27:18] <DanaeNZ> I pretty much died
132: [21:27:24] <Dudinka> today, I drank with Serbs... I wish I died yesterday :)
133: [21:27:35] <DanaeNZ> apparently I was scrapping with two randos outside Father Ted's
134: [21:27:48] <DanaeNZ> which would explain the random bruises
135: [21:28:07] <DanaeNZ> I was still drunk at 4pm yesterday :D
136: [21:28:18] <Dudinka> that's cute
137: [21:28:53] <Dudinka> last year, I got a kid on Thursday... I was still drunk on Sunday, and I slept through Friday and Saturday :D
138: [21:31:00] <Dudinka> fcuk Stomach I can apply extension to class which extends DataObject, but not the DO itself
139: [21:31:20] <Dudinka> I mean, it works - all methods defined in extension are called and work
140: [21:31:33] <Dudinka> but $db/$has_one/ doesn't work
141: [21:33:06] <Dudinka> WHY OH WHY?!?
142: [21:35:27] <Dudinka> did you try to run dev/build with that paste Stomach ? I'm doing it for last few hours, and it just won't work
143: [21:38:03] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
144: [21:41:28] * Stomach quit (Quit: zzz)
145: [21:44:10] * helenclark0 has joined #silverstripe
146: [21:45:31] * Stomach has joined #silverstripe
147: [21:47:34] * Firesphere quit (Ping timeout: 240 seconds)
148: [21:47:34] * helenclarko quit (Ping timeout: 240 seconds)
149: [21:48:06] <Stomach> Dudinka sorry I'm really busy today and haven't had time to test it out specifically
150: [21:49:43] * phorloop has joined #silverstripe
151: [22:02:55] * Firesphere has joined #silverstripe
152: [22:12:48] * Dudinka quit (Ping timeout: 252 seconds)
153: [22:33:52] * phorloop_ has joined #silverstripe
154: [22:33:53] <ss-helper> phorloop_: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
155: [22:36:32] * phorloop quit (Ping timeout: 240 seconds)
156: [22:38:48] <Stomach> helenclark0 we suck again
157: [22:38:52] <Stomach> spronk :(
158: [22:38:56] <spronk> ?
159: [22:39:00] <Stomach> http://www.espncricinfo.com/new-zealand-v-australia-2015-16/engine/match/914239.html
160: [22:39:06] <helenclark0> OH I forgot to watch!
161: [22:39:09] <spronk> ugh
162: [22:39:09] <spronk> yeah
163: [22:39:19] <helenclark0> maybe I shouldnt?
164: [22:39:25] <spronk> voges obviously going to get another 500 runs
165: [22:39:46] <Stomach> we should just quit losing the toss
166: [22:39:51] <spronk> omfg
167: [22:39:56] <spronk> ikr
168: [22:39:59] <spronk> though having said that
169: [22:40:13] <spronk> our batsmen are playing so badly that it probably wouldn't have made any difference
170: [22:42:09] <Stomach> yeah they have been terrible
171: [22:42:13] <Stomach> top order 4/36
172: [22:42:17] <Stomach> :\
173: [22:45:31] <helenclark0> Wait hold on, is bmac bowling?
174: [22:46:07] * zippy has joined #silverstripe
175: [22:46:13] <zippy> Stomach: helenclark0 :D
176: [22:46:14] <spronk> yup
177: [22:46:19] <zippy> he's having a bowl eh
178: [22:46:24] <helenclark0> WTF, bmac IS bowling... What is this.
179: [22:46:25] <Stomach> what the fuck
180: [22:46:28] <spronk> probly saying
181: [22:46:29] <spronk> fuck it
182: [22:46:34] <Stomach> `Baz McCullum will bowl now. That's exciting. He will bowl seam-up`
183: [22:46:35] <spronk> you fuckers aren't doing anything I'LL DO IT MYSELF
184: [22:46:35] <zippy> christ I hope he gets a wicket
185: [22:46:46] <zippy> I get the runs, I get the wickets... f yall
186: [22:46:47] <spronk> lolya
187: [22:47:01] <helenclark0> Oh god I hope so.
188: [22:47:59] <zippy> maiden, building some pressure
189: [22:48:23] <Stomach> had a bye...
190: [22:51:32] <Stomach> okay so McCullum and Williamson are now bowling ends. this is totally fucked.
191: [22:52:25] <zippy> getting through the overs to the next new ball
192: [22:52:54] <zippy> 30 more overs to go
193: [22:53:57] <zippy> argh
194: [22:54:03] <zippy> time to get the sprog
195: [22:55:02] <spronk> lol
196: [22:55:03] <spronk> sprog
197: [22:56:57] <helenclark0> Did bmac get a wicket?
198: [22:57:04] <helenclark0> nope.
199: [22:57:07] <helenclark0> nvm
200: [22:57:15] * helenclark0 is now known as helenclarko
201: [22:57:52] <spronk> KANENENEENENEOEO
202: [22:59:45] <spronk> lol baz
203: [22:59:49] <spronk> 2 overs and he's had enough
204: [23:00:02] * ss-helper quit (Remote host closed the connection)
205: [23:00:19] * ss-helper has joined #silverstripe
206: [23:10:01] * phorloop has joined #silverstripe
207: [23:10:39] * phorloop_ quit (Read error: Connection reset by peer)
208: [23:10:43] * Hailwood has joined #silverstripe
209: [23:13:21] <Hailwood> Heys guys, does a call to a has_many on a dataobject get cached? e.g. SomeDataObject -> HasMany -> OtherDataObject | $sdo = SomeDataObject:get_by_id(..., 32); $sdo->OtherDataObjects(); //is this value cached?
210: [23:14:55] <Hailwood> Cause it seems like if I modify one of the objects ->OtherDataObjects() would return after calling it the first time then when I call ->OtherDataObjects() again in the same request it returns the "OtherDataObject" in the state of the first time rather than the updated version from the database
211: [23:15:03] <ss-helper> Re: Redirect old links to existing posts on the forums - https://groups.google.com/d/msg/silverstripe-dev/TvPQTuKhq6c/oCGOHy1lAgAJ
212: [23:19:51] * Azure|dc has joined #silverstripe
213: [23:20:08] * Azure quit (Ping timeout: 244 seconds)
214: [23:30:45] <Stomach> Hailwood - yeah it will be cached
215: [23:31:24] <Hailwood> Stomach, I know I can clear the cache with $sda->clearCache() but there's no way to say "just for this relation" right?
216: [23:36:11] <Stomach> don't think so no
217: [23:36:17] <Stomach> cant remember sorry
218: [23:40:51] * Azure|dc quit (Remote host closed the connection)
219: [23:42:47] * scott1702 has joined #silverstripe
220: [23:48:45] * Azure has joined #silverstripe
221: [23:49:03] * Azure quit (Remote host closed the connection)
222: [23:49:43] * Azure has joined #silverstripe
223: [23:56:18] * Firesphere quit (Ping timeout: 244 seconds)

These logs were automatically created by ss-log on irc.freenode.net.