#silverstripe IRC Log

IRC log for 29 December 2016

All timestamps are in UTC.

1: [00:37:24] * janneklouman-- has joined #silverstripe
2: [00:42:00] * janneklouman-- quit (Ping timeout: 252 seconds)
3: [00:53:08] * see8 quit (Quit: see8)
4: [01:01:27] * janneklouman-- has joined #silverstripe
5: [01:19:44] * samsam quit (Quit: samsam)
6: [01:20:30] * samsam has joined #silverstripe
7: [01:37:48] * micmania1 quit (Quit: micmania1)
8: [01:38:37] * janneklouman-- quit (Ping timeout: 258 seconds)
9: [01:56:39] * micmania1 has joined #silverstripe
10: [01:56:43] * micmania1 quit (Client Quit)
11: [01:57:39] * janneklouman-- has joined #silverstripe
12: [02:02:03] * janneklouman-- quit (Ping timeout: 256 seconds)
13: [02:17:14] * janneklouman-- has joined #silverstripe
14: [02:21:43] * janneklouman-- quit (Ping timeout: 245 seconds)
15: [02:28:20] * Shobo has joined #silverstripe
16: [02:28:21] * Shobo quit (Client Quit)
17: [02:28:21] <ss-helper> Shobo: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
18: [02:28:40] * Shobo has joined #silverstripe
19: [02:32:56] <Shobo> I'm trying to get a custom CsvBulkLoader working with images. No matter what I try I can't seem to get it to work. Anyone have any experience with this?
20: [03:08:24] * Shobo quit (Quit: Page closed)
21: [03:40:50] * Audlex quit ()
22: [03:44:35] * micmania1 has joined #silverstripe
23: [03:45:04] * micmania1 quit (Client Quit)
24: [04:29:37] * janneklouman-- has joined #silverstripe
25: [04:34:10] * janneklouman-- quit (Ping timeout: 258 seconds)
26: [05:17:16] * samsam has left #silverstripe
27: [05:26:15] * pweh has joined #silverstripe
28: [06:33:33] * Azure quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
29: [06:53:09] * Shrike_Finland has joined #silverstripe
30: [07:07:47] * Shrike_Finland quit (Quit: Leaving.)
31: [08:14:56] * Mike123 has joined #silverstripe
32: [08:15:00] <Mike123> Hey
33: [08:17:09] * pweh quit (Ping timeout: 248 seconds)
34: [08:23:59] * Eliseth has joined #silverstripe
35: [08:51:23] * Eliseth quit (Ping timeout: 258 seconds)
36: [08:58:42] * pweh has joined #silverstripe
37: [09:20:57] * Shrike_Finland has joined #silverstripe
38: [10:10:10] * Shrike_Finland quit (Quit: Leaving.)
39: [10:10:29] * Shrike_Finland has joined #silverstripe
40: [10:10:58] * Shrike_Finland quit (Client Quit)
41: [10:30:57] * Kapdap quit (*.net *.split)
42: [10:30:58] * Firesphere quit (*.net *.split)
43: [10:30:58] * gamma quit (*.net *.split)
44: [10:36:34] * Kapdap has joined #silverstripe
45: [10:36:35] * Firesphere has joined #silverstripe
46: [10:36:35] * gamma has joined #silverstripe
47: [11:06:08] * Eliseth has joined #silverstripe
48: [11:12:37] * Mike123 quit (Quit: Page closed)
49: [11:19:33] * pweh quit (Read error: Connection reset by peer)
50: [11:46:20] * samsam has joined #silverstripe
51: [13:22:42] * gelignite has joined #silverstripe
52: [14:13:53] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
53: [14:29:25] * Azure has joined #silverstripe
54: [14:56:49] * Eliseth quit (Ping timeout: 260 seconds)
55: [15:00:21] * zri has joined #silverstripe
56: [15:00:29] <zri> Hey everyone
57: [15:00:51] <zri> can someone point me why my extra static $db added throuvgh DataExtension doesnt add up anything to DataObject as a class I am extending
58: [15:01:13] <zri> so I want to add a property has_one to every & every object in the DB
59: [15:01:17] <zri> what am I doing wrong?
60: [15:01:28] <zri> I checked and extension is correctly applied
61: [15:01:37] <zri> to all of them, however only the DB is not extended correctly
62: [15:06:23] <slievr1> zri, can you paste code?
63: [15:06:27] * slievr1 is now known as slievr
64: [15:07:44] <zri> http://pastie.org/10986490
65: [15:09:17] <zri> http://pastie.org/10986492
66: [15:10:40] <zri> Any ideas slievr?
67: [15:10:55] <slievr> why ahve you commented out the relation?
68: [15:11:01] <slievr> why have you commented out the relation?
69: [15:11:20] <slievr> sorry I just tried to edit that message like slack
70: [15:14:32] <zri> well, it is because I have tried it
71: [15:14:39] <zri> and no it wont work
72: [15:14:52] <zri> btw I am also on slack
73: [15:14:56] <zri> so lets continue there maybe
74: [15:15:12] <slievr> are you trying to make everything relate to a specific object
75: [15:15:27] <slievr> or specifc type of object
76: [15:15:40] <slievr> as you set ID in you onBeforeWrite
77: [15:17:12] <zri> to a specific object
78: [15:17:25] <zri> so to make instances of everything relate to one object
79: [15:21:03] <slievr> It seems that you can't add an extension straight to DataObject
80: [15:21:10] <slievr> double checking as I could be wrong
81: [15:24:05] <zri> Extension is added, however extra static fields cannot be added
82: [15:24:12] <zri> all of my DB are extended by the extension
83: [15:24:21] <zri> pages are for sure
84: [15:24:30] <zri> but no extra Db fields yet
85: [15:30:39] <slievr> Yep just tried it out.
86: [15:31:08] <slievr> Do you need a field though?
87: [15:31:51] <slievr> can't you just write a getMainObject() method that gets it? if they're all the same and it's not updateable
88: [15:32:57] <zri> I would like to have MainObjectID also created on each table in the DB
89: [15:33:05] <zri> to avoid adding extension all over the place now
90: [15:33:32] <zri> that is my problem now
91: [15:33:37] <zri> the rest extension will do
92: [15:43:59] <slievr> found out why it's not building, fields.
93: [15:44:16] <slievr> getting around it looks to be messy
94: [15:44:56] <zri> where did you find it?
95: [15:44:58] <zri> DataObject?
96: [15:45:03] <slievr> it calls self::class when building tables
97: [15:45:04] <slievr> yep
98: [15:45:12] <slievr> line 3161
99: [15:47:20] <zri> Ok I found out that the config and cache is actually having the field I added, however it is just not added to the build process of the DB table
100: [15:54:22] <zri> augmentDatabase
101: [15:54:24] <zri> maybe
102: [15:56:18] <slievr> yep, looks like you'll need to hook into that and add the field to each table
103: [15:56:31] <slievr> sound super messy though
104: [15:56:36] <zri> I will give it a go just to see some example
105: [16:50:21] * zri quit (Ping timeout: 260 seconds)
106: [17:22:28] * Azure quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
107: [19:14:29] * Shrike_Finland has joined #silverstripe
108: [19:24:56] * Shrike_Finland quit (Quit: Leaving.)
109: [19:29:17] * Azure has joined #silverstripe
110: [19:49:58] * samsam has left #silverstripe
111: [21:16:01] * Azure quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
112: [22:27:52] * gelignite has joined #silverstripe
113: [23:00:02] * ss-helper quit (Remote host closed the connection)
114: [23:00:19] * ss-helper has joined #silverstripe
115: [23:05:18] * Azure has joined #silverstripe

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