#silverstripe IRC Log

IRC log for 6 September 2016

All timestamps are in UTC.

1: [00:00:01] * ss-helper quit (Remote host closed the connection)
2: [00:00:16] * ss-helper has joined #silverstripe
3: [00:15:03] <ss-helper> Select DISTINCT on a single column using Silverstripe ORM - http://stackoverflow.com/questions/39338922/select-distinct-on-a-single-column-using-silverstripe-orm
4: [00:27:48] * Azure quit (Ping timeout: 276 seconds)
5: [00:36:08] * spronk has joined #silverstripe
6: [00:41:22] * micmania1 quit (Quit: micmania1)
7: [00:49:36] * bubaphex has joined #silverstripe
8: [00:51:53] * isaac_ has joined #silverstripe
9: [00:53:50] <isaac_> hey guys, I'm trying to override the Product.ss template in https://github.com/silvershop/silvershop-core I can't find any documentation on how silverstripe prioritises templates, anyone have any ideas?
10: [01:00:40] <DanaeNZ> isaac_: off the top of my head, your project folder (mysite) overwrites everything. If you're having trouble, ensure the folder structure for the template is correct (check case), and don't forget to fluch
11: [01:00:47] <DanaeNZ> flush*
12: [01:02:36] * pweh has joined #silverstripe
13: [01:04:08] * Azure has joined #silverstripe
14: [01:04:28] <isaac_> @DanaeNZ dev/build?flush=1 didn't fix it. Extra info: in silvershop it's under Layout/Product.ss, I am trying to override it to Includes/Product.ss, is there an issue in that part?
15: [01:05:28] <DanaeNZ> isaac_: yeah, it will need to go in your Layout/Product.ss
16: [01:05:33] <DanaeNZ> i mean
17: [01:05:35] <DanaeNZ> Includes
18: [01:05:38] * bubaphex quit (Quit: My Mac has gone to sleep. ZZZzzz…)
19: [01:05:43] <DanaeNZ> just copy the shop structure and should be sweet
20: [01:05:48] <DanaeNZ> also try flushing just the front end
21: [01:07:06] <isaac_> @DanaeNZ so when i do <% include some_template %> it prioritizes Layouts over Includes, even though I'm... including...
22: [01:09:21] <DanaeNZ> Because it will be using the $Layout variable
23: [01:09:46] <DanaeNZ> instude of going <% include Product %>, try $Layout (as long as you are in the right scope)
24: [01:12:31] <isaac_> but it's not a layout, it's meant to be an include :L
25: [01:12:58] <isaac_> eh it's aite, I'll leave it in Layouts
26: [01:13:10] <DanaeNZ> isaac_: is SilverShop going <% include %>>
27: [01:14:01] <isaac_> no, SilverShop uses it as a Layout, but I want to use the same filename (Product) as an include (it makes more sense than ProductGroupItem)
28: [01:16:55] * Azure quit (Quit: Oops.)
29: [01:26:42] * micmania1 has joined #silverstripe
30: [01:41:35] * Stomach quit (Quit: zzz)
31: [01:42:58] * Stomach has joined #silverstripe
32: [01:45:04] <ss-helper> Template Layout vs Includes Priority - http://stackoverflow.com/questions/39339381/template-layout-vs-includes-priority
33: [01:50:49] * pweh quit (Ping timeout: 252 seconds)
34: [01:53:53] * Azure has joined #silverstripe
35: [01:59:35] * bubaphex has joined #silverstripe
36: [02:10:49] * pweh has joined #silverstripe
37: [02:12:32] * willr quit (Quit: willr)
38: [02:17:40] * Admonish has joined #silverstripe
39: [02:22:59] <Admonish> Hey yall what is the best way to update a DBfield on a DataObject using the ORM
40: [02:28:37] <DanaeNZ> Admonish: $object->FieldName = 'New value'; $object->write(); ?
41: [02:30:05] <ss-helper> RE: [silverstripe-dev] Re: Replace SilverStripe Config - https://groups.google.com/d/msg/silverstripe-dev/q5khashNiuY/16RgutwXBwAJ
42: [02:30:06] <ss-helper> Re: Replace SilverStripe Config - https://groups.google.com/d/msg/silverstripe-dev/q5khashNiuY/PiWEw7QXBwAJ
43: [02:34:33] <hailwood> So legacy site here, it's running micmania/blog 1.0 and subsites, and SS 3.3. If a blog is nested under another page (aka not a root page) SS is getting confused and missing the middle pages url segment (so what should be /news/latest-news is just being /latest-news) and 404ing even in the preview pane - Yet in the site tree it displays fine, Any ideas?
44: [02:37:30] <DanaeNZ> hailwood: try looking into the Link() function of that pagetype? It might have the right ParentID just not the right link
45: [02:42:12] <hailwood> DanaeNZ, From what I can see it's not overwritten anywhere so I think it might be a dirty interaction between subsites and blogger
46: [03:47:45] * Stomach quit (Ping timeout: 244 seconds)
47: [03:48:22] * DanaeNZ quit (Remote host closed the connection)
48: [03:48:58] * DanaeNZ has joined #silverstripe
49: [03:50:21] * Stomach has joined #silverstripe
50: [03:50:38] * UncleCheese has joined #silverstripe
51: [03:50:55] <hailwood> Anyone know if <span> tags affect how your content is interpreted? I.E. does google read <span>H</span>ello as "H" and "ello" or as "Hello"
52: [03:51:59] * DanaeNZ quit (Remote host closed the connection)
53: [03:52:12] * DanaeNZ has joined #silverstripe
54: [04:16:31] * phorloop has joined #silverstripe
55: [04:19:04] * willr has joined #silverstripe
56: [04:20:05] * bubaphex quit (Quit: My Mac has gone to sleep. ZZZzzz…)
57: [04:20:30] * bubaphex has joined #silverstripe
58: [04:21:59] * UncleCheese quit (Quit: Textual IRC Client: www.textualapp.com)
59: [04:22:50] * UncleCheese has joined #silverstripe
60: [04:28:05] * chillu_23 quit (Ping timeout: 244 seconds)
61: [04:40:02] * isaac_ quit (Ping timeout: 264 seconds)
62: [04:48:34] * Stomach quit (Quit: zzz)
63: [04:49:15] * DimiStripe quit (Ping timeout: 244 seconds)
64: [04:57:36] * bubaphex quit (Quit: My Mac has gone to sleep. ZZZzzz…)
65: [05:11:13] * Admonish quit (Quit: Going offline, see ya! (www.adiirc.com))
66: [05:26:17] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
67: [05:46:32] * Admonish has joined #silverstripe
68: [05:58:04] * phorloop quit (Quit: My laptop go to sleep. ZZZzzz…)
69: [06:07:13] * Stomach has joined #silverstripe
70: [06:07:48] * spronk quit (Quit: I may need a longer sleep timer...)
71: [06:12:04] * pweh quit (Ping timeout: 252 seconds)
72: [06:15:33] * TheVoid quit (Ping timeout: 276 seconds)
73: [06:16:10] * willr quit (Quit: willr)
74: [06:17:26] * willr has joined #silverstripe
75: [06:17:26] * willr quit (Client Quit)
76: [06:19:43] * TheVoid has joined #silverstripe
77: [06:35:37] * spronk has joined #silverstripe
78: [06:40:05] * DanaeNZ quit (Quit: TIME TO FEED)
79: [06:41:56] * pweh has joined #silverstripe
80: [06:48:30] * micmania1 quit (Quit: micmania1)
81: [06:50:23] * darianno has joined #silverstripe
82: [06:53:09] * Stomach quit (Quit: zzz)
83: [06:56:35] * hewp has joined #silverstripe
84: [06:58:16] * pweh quit (Ping timeout: 252 seconds)
85: [07:02:00] * chillu_23 has joined #silverstripe
86: [07:13:08] * UncleCheese has joined #silverstripe
87: [07:17:08] * micmania1 has joined #silverstripe
88: [07:20:43] * wmk has joined #silverstripe
89: [07:20:44] * Admonish_ has joined #silverstripe
90: [07:23:05] * Admonish quit (Ping timeout: 265 seconds)
91: [07:23:09] * Admonish_ is now known as Admonish
92: [07:23:21] * Mike123 has joined #silverstripe
93: [07:23:28] <wmk> Mike123, !!
94: [07:23:37] <wmk> hey, do you come to the conf?
95: [07:24:03] <Mike123> hey wmk :)
96: [07:24:16] <Mike123> nop :/ have no time, really sad...
97: [07:24:32] <wmk> sad.
98: [07:24:37] <wmk> why do you have no time?
99: [07:24:43] <wmk> did we announce the date too late for you?
100: [07:24:50] <Mike123> lot of work.. other stuff :)
101: [07:24:53] <wmk> @Zauberfisch, ^^
102: [07:25:14] <wmk> Mike123, keep some time in october next year ;)
103: [07:25:16] <Mike123> nooo no :D it's ok, i got msg from you right in time :)
104: [07:25:21] <Mike123> i will :)
105: [07:25:35] <wmk> of course, only if you want to join the conf ;)
106: [07:26:06] <Zauberfisch> yeah, I know the problem D:
107: [07:26:21] <Zauberfisch> to much stuff I want to do
108: [07:26:23] <Mike123> i want to place SS project under folder, like www.project.com/myFolder/
109: [07:26:38] <Mike123> but i cant access /admin and other stuff
110: [07:26:42] <Mike123> any suggestions ?
111: [07:26:52] <Zauberfisch> but yeah, I was kind of the reason we didn't announce it earlier :|
112: [07:26:55] <Mike123> this is only for short time..
113: [07:27:04] <Zauberfisch> sounds like a rewrite problem
114: [07:27:05] <wmk> Mike123, a subdomain is easier ;)
115: [07:27:14] * Stomach has joined #silverstripe
116: [07:27:15] <wmk> yup, seems like htaccess in / causes problems?
117: [07:27:15] <Zauberfisch> I generally prefer subdomains too
118: [07:27:24] <wmk> of course you have to use /myFolder/admin ..
119: [07:27:27] <Zauberfisch> nah, probably need a rewrite base
120: [07:27:36] <wmk> ah, good point Zauberfisch
121: [07:27:37] <Zauberfisch> did you move it there or did you use the silverstripe installer?
122: [07:29:47] <Mike123> subdomain is not an option for this time :)
123: [07:30:03] <Mike123> Zauberfisch, i moved it
124: [07:30:56] <Mike123> this is only short time solution :)
125: [07:31:54] <Zauberfisch> try setting a rewritebase for that folder name
126: [07:32:17] <Zauberfisch> if that doesn't work, just run a new silverstripe installer in a different folder and see what it creates in the htaccess file
127: [07:33:01] <Zauberfisch> (when I say add rewrite base I mean add the following: "RewriteBase /fooo/" to your htaccess. Right after RewriteEngine On )
128: [07:34:58] * Stomach quit (Quit: zzz)
129: [07:35:28] <Mike123> Zauberfisch, thanks :) it worked !
130: [07:36:13] <Zauberfisch> np
131: [07:37:51] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
132: [07:47:28] * swaiba has joined #silverstripe
133: [07:53:45] * Teddy_ has joined #silverstripe
134: [07:54:26] * Mike123 quit (Ping timeout: 264 seconds)
135: [07:55:20] * Teddy__ has joined #silverstripe
136: [07:57:57] * kinglozzer has joined #silverstripe
137: [07:58:04] * Teddy_ quit (Ping timeout: 240 seconds)
138: [08:07:40] * janneklouman-- has joined #silverstripe
139: [08:09:08] * Admonish quit (Quit: Going offline, see ya! (www.adiirc.com))
140: [08:15:03] * phorloop has joined #silverstripe
141: [08:15:45] * phorloop quit (Client Quit)
142: [08:26:09] * darjusIT has joined #silverstripe
143: [08:29:13] * Stomach has joined #silverstripe
144: [08:35:25] <wmk> darjusIT, did you get the oauth managed?
145: [08:35:57] <darjusIT> wmk I will be making that tomorrow :)
146: [08:36:40] * agent44 has joined #silverstripe
147: [08:42:49] * agent44 quit (Quit: agent44)
148: [08:46:58] * Teddy_ has joined #silverstripe
149: [08:48:33] * TheVoid quit (Ping timeout: 250 seconds)
150: [08:48:54] * agent44 has joined #silverstripe
151: [08:50:04] * Teddy__ quit (Ping timeout: 240 seconds)
152: [08:50:12] <wmk> anyone knows if fluent has problems when i want to duplicate a page?
153: [09:26:13] * hewp quit (Ping timeout: 252 seconds)
154: [09:32:11] * Stomach quit (Quit: zzz)
155: [09:40:32] * spronk quit (Quit: I may need a longer sleep timer...)
156: [09:58:03] * spronk has joined #silverstripe
157: [10:01:00] * chillu_23 quit (Quit: chillu_23)
158: [10:02:48] * chillu_23 has joined #silverstripe
159: [10:03:47] * DimiStripe has joined #silverstripe
160: [10:15:09] * DimiStripe_alt has joined #silverstripe
161: [10:16:05] * DimiStripe quit (Ping timeout: 250 seconds)
162: [10:16:05] * DimiStripe_alt is now known as DimiStripe
163: [10:34:52] * hewp has joined #silverstripe
164: [10:41:39] * spronk quit (Quit: I may need a longer sleep timer...)
165: [10:56:59] * kinglozzer quit (Read error: Connection reset by peer)
166: [11:02:51] * kinglozzer has joined #silverstripe
167: [11:06:31] * spronk has joined #silverstripe
168: [11:12:37] * keroberos quit (Ping timeout: 255 seconds)
169: [11:28:57] * chillu_23 quit (Quit: chillu_23)
170: [11:32:16] * micmania1 quit (Quit: micmania1)
171: [11:42:31] * Teddy__ has joined #silverstripe
172: [11:43:04] * Teddy_ quit (Ping timeout: 240 seconds)
173: [11:44:54] * Teddy__ quit (Read error: Connection reset by peer)
174: [11:47:37] * keroberos has joined #silverstripe
175: [11:47:55] * wmk quit (Quit: Leaving)
176: [12:18:36] * lerni has joined #silverstripe
177: [12:28:50] * Azure quit (Quit: My Mac has gone to sleep. ZZZzzz…)
178: [12:34:58] * Azure has joined #silverstripe
179: [12:44:39] * UndefinedOffset has joined #silverstripe
180: [13:04:01] * hewp quit (Ping timeout: 252 seconds)
181: [13:07:03] * ocmnt has joined #silverstripe
182: [13:07:44] <ocmnt> ola
183: [13:14:23] <darjusIT> Hi, ConfirmedPasswordField::create() creates 2 pass fields is it possible to remove lables and put placeholders on them?
184: [13:22:56] * agent44 quit (Quit: zzz)
185: [13:26:53] * agent44 has joined #silverstripe
186: [13:29:41] * r3v3rb has joined #silverstripe
187: [13:29:45] <r3v3rb> yello
188: [13:30:28] <r3v3rb> damn rooms are expensive now in Slovenia… waited two weeks to get home to book and its not cheap anymore! flights are though
189: [13:30:56] <r3v3rb> :( saddened - wont get StripeCon Stickers this year at this rate
190: [13:32:41] <r3v3rb> Anyone in London tomorrow fancy a beer? I’m there until 6pm if you do!
191: [13:32:51] <swaiba> r3v3rb that sucks
192: [13:33:01] <r3v3rb> swaiba: you going?
193: [13:33:13] <swaiba> yep
194: [13:33:29] <swaiba> airbnb? and the deals are no good?
195: [13:33:46] <r3v3rb> £55 for the flights stansted to ljub-> hotel €196 for two nights
196: [13:33:54] <r3v3rb> air didnt try!
197: [13:34:13] <swaiba> i think i paid 146 for 3 nights
198: [13:34:46] <r3v3rb> hmm, £93
199: [13:34:51] <r3v3rb> three nights not bad
200: [13:37:10] <r3v3rb> or Spela’s place for £55 yikes thats cheap ass
201: [13:41:28] <swaiba> yeah there are fees, but still much cheaper than "hotels"
202: [13:48:03] <r3v3rb> just looking at one £61 including fees for three nights
203: [13:48:41] <r3v3rb> just off the river by the cathedral
204: [13:57:22] <swaiba> oh yeah I mean if you rent a private room it's even less, I'm going for my own place but still much cheaper than a hotel
205: [13:57:54] <r3v3rb> I didn’t realise you could rent the whole place!
206: [14:00:17] <ss-helper> Re: Support Timeline and LTS (draft) - https://groups.google.com/d/msg/silverstripe-dev/3lEgTZfT4Og/9DRffNQ8BwAJ
207: [14:06:15] * muskie9 has joined #silverstripe
208: [14:12:12] <swaiba> r3v3rb click in the filters for "whole place" i think
209: [14:12:40] <swaiba> but yeah if you look at some destinations with airbnb you can get a nice apartment for a week instead of the cost of one hotel room for a night
210: [14:12:56] <swaiba> this will be my first time trying it out, but I'm sure it "works" by now lol
211: [14:53:33] * Azure quit (Ping timeout: 265 seconds)
212: [14:54:41] * Azure has joined #silverstripe
213: [15:30:50] * lerni quit ()
214: [15:40:50] * spronk quit (Quit: I may need a longer sleep timer...)
215: [15:48:44] * TheVoid has joined #silverstripe
216: [16:11:03] * kinglozzer quit ()
217: [16:11:34] * DimiStripe quit (Ping timeout: 252 seconds)
218: [16:12:34] * DimiStripe has joined #silverstripe
219: [16:15:28] * muskie9 quit (Quit: My Mac has gone to sleep. ZZZzzz…)
220: [16:19:52] * janneklouman-- quit (Ping timeout: 244 seconds)
221: [16:22:31] * muskie9 has joined #silverstripe
222: [16:51:59] * ocmnt quit (Quit: Page closed)
223: [16:59:54] * agent44 quit (Quit: zzz)
224: [18:10:52] * Azure quit (Ping timeout: 240 seconds)
225: [18:27:35] * Stomach has joined #silverstripe
226: [18:33:37] * Azure has joined #silverstripe
227: [18:40:13] * Stomach quit (Quit: zzz)
228: [18:52:14] * CodeTrap has joined #silverstripe
229: [18:54:06] * Azure quit (Ping timeout: 276 seconds)
230: [19:18:24] * gelignite has joined #silverstripe
231: [19:19:13] * Azure has joined #silverstripe
232: [19:25:55] * darianno quit (Quit: My Mac has gone to sleep. ZZZzzz…)
233: [19:38:46] * Stomach has joined #silverstripe
234: [19:56:31] * r3v3rb quit (Quit: r3v3rb)
235: [19:57:36] * UncleCheese has joined #silverstripe
236: [20:18:47] * chillu_23 has joined #silverstripe
237: [20:21:05] * Stomach quit (Quit: zzz)
238: [20:26:49] * muskie9 quit (Quit: My Mac has gone to sleep. ZZZzzz…)
239: [20:27:11] * Stomach has joined #silverstripe
240: [20:30:34] * UndefinedOffset quit (Quit: Leaving.)
241: [20:31:22] * muskie9 has joined #silverstripe
242: [20:37:05] * wat has joined #silverstripe
243: [20:37:05] <ss-helper> wat: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
244: [20:37:59] <wat> is there a way to tell, onAfterPublish(), whether the publish that occured was the first one? (ie. the page was not published until this action)
245: [20:38:02] * DanaeNZ has joined #silverstripe
246: [20:41:32] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
247: [20:46:49] * Nightjar has joined #silverstripe
248: [20:47:09] <Nightjar> Morena
249: [20:48:19] <DanaeNZ> holaaaa
250: [20:48:28] <wat> is there a way to tell, onBeforeWrite()/onAfterPublish(), whether the publish that occured was the first one? (ie. the page was not published until this action)
251: [20:48:46] <Nightjar> isChanged('ID')
252: [20:48:50] <wat> ta
253: [20:49:16] <muskie9> Nightjar would that work since a page has an ID when written to stage?
254: [20:49:28] <Nightjar> muskie9, then it's not the first save
255: [20:49:41] <Nightjar> ... 'write'.
256: [20:49:45] <muskie9> true
257: [20:51:03] <Nightjar> First publish poses more of an issue I guess. You'd probably have to check the history :(
258: [20:51:12] <Nightjar> (coz... Versioned)
259: [20:51:26] <wat> aah ok. not what I wanted to hear. hoping there was something already written. ok thanks
260: [20:51:33] <AlphaCactus> getChangedFields(...) ?
261: [20:51:33] <Nightjar> there might be
262: [20:51:41] <Nightjar> dunno, just haven't looked into it that much.
263: [20:51:51] <Nightjar> AlphaCactus, but that will be true any time any of the other fields change.
264: [20:52:02] <Nightjar> eg. unpublish -> republish, etc.
265: [20:52:17] <Nightjar> or if you have more than one stage, like advancedworkflow or something
266: [20:56:24] <wat> I'm writing a get_by_stage blah are is there one blah
267: [20:58:17] <wat> if ($this->ID > 0) { $x = Versioned::get_by_stage('Page', 'Live')->byID($this->ID); }
268: [20:58:22] <wat> in the onBeforeWrite()
269: [20:58:25] * adrexia has joined #silverstripe
270: [20:58:32] <Nightjar> you could directly query the _versions table, if there is no "Stage" = 'Published' then it's the first time.
271: [20:58:51] <Nightjar> not a biggie, there may already be something in the ORM. You'd have to check the Versioned class.
272: [20:59:05] <Nightjar> or do that fancy get, yeh. That'd probably do it.
273: [20:59:14] <Nightjar> Write a unit test to cover it ;)
274: [21:01:26] <wat> ah, found something... $this->latestPublished()
275: [21:01:37] <wat> returns 1 if there is a published one, or nothing at all if there isn't
276: [21:01:48] <Nightjar> there we go :)
277: [21:01:51] <Nightjar> neat
278: [21:08:50] * wat quit (Ping timeout: 264 seconds)
279: [21:17:33] * wat has joined #silverstripe
280: [21:19:34] <DanaeNZ> Well that's handy to know
281: [21:22:48] <Nightjar> File that under "Shit Versioned CAN do, so you can narrowly avoid looking into it's abyss once again"
282: [21:25:37] <DanaeNZ> hahahaha
283: [21:25:57] <DanaeNZ> There's been instances where I know I should probably put versioned on a dataobject
284: [21:26:04] <DanaeNZ> but I want to avoid that clusterfuck
285: [21:26:09] <DanaeNZ> so I just don't
286: [21:26:41] <wat> clarification. Its the version number it's returning
287: [21:27:44] <DanaeNZ> ah
288: [21:29:26] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
289: [21:30:37] * adrexia quit (Quit: My Mac has gone to sleep. ZZZzzz…)
290: [21:31:15] * CodeTrap quit (Ping timeout: 265 seconds)
291: [21:35:42] * UncleCheese has joined #silverstripe
292: [21:36:09] <DanaeNZ> aw man, this CSV importer class for L*****l that boasts excellent memory handling still times out if you cram a large enough CSV in it
293: [21:36:20] <DanaeNZ> to be fair I think it's because of my PHP allowed memory
294: [21:36:30] * UncleCheese quit (Client Quit)
295: [21:36:34] <DanaeNZ> ew, this probably means I have to process this in chunks
296: [21:36:45] * UncleCheese has joined #silverstripe
297: [21:39:06] * adrexia has joined #silverstripe
298: [21:47:42] <Nightjar> There've -.-
299: [21:48:21] <Nightjar> DanaeNZ, to be fair, if it's not written in C, it's fuck'n lying.
300: [21:48:52] <Nightjar> DanaeNZ, actually, this would be the PERFECT use case for generators.
301: [21:49:09] <DanaeNZ> slightly lost
302: [21:49:11] <DanaeNZ> haha
303: [21:49:13] <Nightjar> MUCH better memory usage
304: [21:49:40] <Nightjar> https://google.com/search?q=PHP+generators
305: [21:55:36] <DanaeNZ> ah gotcha
306: [21:56:33] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
307: [21:57:38] <DanaeNZ> I can't tell right away if this class is being very efficient
308: [21:57:50] <DanaeNZ> seems to read the csv, store the rows, then iterate through them
309: [21:58:44] * micmania1 has joined #silverstripe
310: [22:06:03] * Nightjar quit (Ping timeout: 265 seconds)
311: [22:06:19] * darjusIT quit (Read error: Connection reset by peer)
312: [22:07:40] <wat> How can I tell whether a save or a save+publish is occuring in the onBeforeWrite() method?
313: [22:16:46] * Nightjar has joined #silverstripe
314: [22:26:31] * micmania1 quit (Quit: micmania1)
315: [22:27:14] * micmania1 has joined #silverstripe
316: [22:27:58] * micmania1 quit (Read error: No route to host)
317: [22:28:07] * micmania1 has joined #silverstripe
318: [22:40:01] <Nightjar> DanaeNZ, yeah, see a generator reads rows and does shit as they roll in, then discards.
319: [22:40:18] <Nightjar> I didn't understand the concept until I saw a talk on it.
320: [22:40:27] <Nightjar> Very cool. Unfortuantely not recorded :(
321: [22:41:00] <Nightjar> but something along the lines (probably not strictly true) of only using the memory for the rows currently being processed.
322: [22:41:29] <Nightjar> Meaning big docs suddenly use a shitload less memory overall, because they don't need to load the whole thing.
323: [22:42:11] <Nightjar> talk I saw was from the guy who writes/maintains PHPOffice https://github.com/PHPOffice
324: [22:42:24] <Nightjar> particularly he was talking about PHPExcel in his examples, but yeh.
325: [22:42:52] * Stomach quit (Quit: zzz)
326: [22:45:59] * Stomach has joined #silverstripe
327: [22:56:39] <DanaeNZ> oh shiet, sounds awesome
328: [22:57:08] <DanaeNZ> Ah I increased the memory limit and the import works, but I don't think it's implementing that concept at all
329: [22:57:28] <DanaeNZ> the CSV file is not toooo big, like, 11MB, but there are thousands and thousands of rows
330: [22:57:49] <DanaeNZ> row count shouldn't really affect it if it's using a PHP generator
331: [22:57:52] <DanaeNZ> I'd think
332: [23:03:14] <Nightjar> DanaeNZ, yeah, iirc it (generators feature) was only introduced in 5.6 or something recent.
333: [23:03:27] <DanaeNZ> Oh that would explain it
334: [23:03:31] <Nightjar> so to expand on target users or the age of the project... maybe not a thing.
335: [23:03:35] <DanaeNZ> this class was made for >=5.3
336: [23:03:42] <Nightjar> yeh.
337: [23:04:16] <Nightjar> If it's SS's inbuilt one then it's particularly hungry because it ORM's all the things
338: [23:04:38] <Nightjar> make object, build object, save object, next line
339: [23:04:41] * wat quit (Quit: Page closed)
340: [23:04:50] <Nightjar> afaik
341: [23:05:09] <Nightjar> and Generator win would be magic for 4+
342: [23:05:29] * wat has joined #silverstripe
343: [23:05:35] <Nightjar> dunno if that's a thing though. Probably not a biggie for initial release at least. Can be something that's easily refactored after first release.
344: [23:06:03] <Nightjar> ie, it's not an API change. So long as the target (php version) support level is high enough
345: [23:06:21] <DanaeNZ> nah this is Laravel
346: [23:06:32] <DanaeNZ> but it does the same thing anyway, through the ORM
347: [23:21:41] <Nightjar> Make a better one. Publish it. Get famous. Be invited to speak at conferences in exotic locations.
348: [23:21:43] <Nightjar> ???
349: [23:21:44] <Nightjar> Profit.
350: [23:22:15] <Nightjar> lazyfizzle has the userbase for that kinda shizzles.
351: [23:25:09] <DanaeNZ> userbase for famous module authors?
352: [23:25:29] <DanaeNZ> heheh

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