# |
Aug 7th 2008, 04:53 |
achew22 |
although sometimes I end up with work projects that are 30% comments which is always nice when I come back |
# |
Aug 7th 2008, 04:52 |
achew22 |
makes my head hurt |
# |
Aug 7th 2008, 04:52 |
achew22 |
ah but I live in the strange high paced dev world / slow paced higly documented educational world still |
# |
Aug 7th 2008, 04:52 |
alkemann |
im not in school anymore. its all about practical :P |
# |
Aug 7th 2008, 04:52 |
achew22 |
if I turned it into a professor yes, but for me its just fine |
# |
Aug 7th 2008, 04:51 |
alkemann |
is the documentation in Logable too sparse? |
# |
Aug 7th 2008, 04:51 |
achew22 |
ad7 would know |
# |
Aug 7th 2008, 04:51 |
achew22 |
I know the book has one |
# |
Aug 7th 2008, 04:50 |
alkemann |
ur using a versioning behavior now? |
# |
Aug 7th 2008, 04:50 |
achew22 |
get ready for some major hugs then -- right after I see that code ;) |
# |
Aug 7th 2008, 04:49 |
alkemann |
i love hugs! :P |
# |
Aug 7th 2008, 04:49 |
Martz |
JeffEmbracedDC: yeah, as alkemann said. Something like: User, Groups, GroupUsers. GroupUsers belongsTo User, Group. User hasMany GroupUsers. Group hasMany GroupUsers - and find more recursively |
# |
Aug 7th 2008, 04:49 |
achew22 |
that would be a great addition I'd give you a hug if you did that |
# |
Aug 7th 2008, 04:49 |
alkemann |
i will definitivly take a look at it |
# |
Aug 7th 2008, 04:48 |
achew22 |
not to make it complicated or anything |
# |
Aug 7th 2008, 04:48 |
achew22 |
alkemann: if you mixed versioning with logging with polymporphic you would be able to do it |
# |
Aug 7th 2008, 04:48 |
JeffEmbracedDC |
alkemann: cool :) |
# |
Aug 7th 2008, 04:47 |
alkemann |
JeffEmbracedDC: belongsTo, since the key is in that model |
# |
Aug 7th 2008, 04:47 |
alkemann |
be hard to make it totally general though, would have to be associated with the specific Version behavior i think |
# |
Aug 7th 2008, 04:47 |
JeffEmbracedDC |
Martz: in your join table model... is in belongsTo or hasOne back associations? |
# |
Aug 7th 2008, 04:46 |
achew22 |
alkemann: you could do both, associate the log change with a shadowtable's element id |
# |
Aug 7th 2008, 04:45 |
alkemann |
it'd be a bit complicated, it is an obvious step. But i was thinking maybe if u want that, its better to use the Versioning beahvior with shadowtables? |
# |
Aug 7th 2008, 04:45 |
achew22 |
martz its in saved-bin it won't ever go away just go to bin.cakephp.org and search for alkemann logable |
# |
Aug 7th 2008, 04:44 |
achew22 |
is it possible to get it to log the value changes? |
# |
Aug 7th 2008, 04:44 |
achew22 |
hey-- that's cool |
# |
Aug 7th 2008, 04:44 |
Martz |
ACTION bookmarks |
# |
Aug 7th 2008, 04:43 |
alkemann |
all u need right here http://bin.cakephp.org/saved/35826 |
# |
Aug 7th 2008, 04:43 |
achew22 |
google code = 30 sec |
# |
Aug 7th 2008, 04:43 |
achew22 |
use one of the free services |
# |
Aug 7th 2008, 04:43 |
Martz |
i throw everything in repos :P |
# |
Aug 7th 2008, 04:43 |
Martz |
perhaps |
# |
Aug 7th 2008, 04:42 |
alkemann |
bit overkill for just a behavior though isnt? |
# |
Aug 7th 2008, 04:42 |
Martz |
i can set one up for you if you like |
# |
Aug 7th 2008, 04:41 |
Martz |
do you want one? |
# |
Aug 7th 2008, 04:41 |
alkemann |
no sorry |
# |
Aug 7th 2008, 04:41 |
Martz |
alkemann: sure I will at some point. I've got a quick project to do first which wont need any logging (all image uploads and resizing with AD7Sixs attachment behavior :D) but i'll give it a shot. Do you have an SVN you can throw it in? |
# |
Aug 7th 2008, 04:40 |
Martz |
alkemann: sure. and it has it uses, as you said with Users.. ACL with aro/aco/axo etc works great HABTM with meta data, but it has custom methods to handle all of that automagically |
# |
Aug 7th 2008, 04:40 |
alkemann |
Martz: so, u wanna test my behavior and see if u got some feature requests or bugs or something? |
# |
Aug 7th 2008, 04:39 |
alkemann |
Martz: i sorta agre. I have only used it for the created field and a boolean for if its two-way |
# |
Aug 7th 2008, 04:37 |
alkemann |
sorry GroupsUser probably |
# |
Aug 7th 2008, 04:37 |
Martz |
JeffEmbracedDC: it goes back to my point before: why have a join table, then stuff it full of meta data - and end up rebinding it as hasOne, using 'with' and all of the downsides and complexities.. when you could use a third "real" model instead of the join table and life would be much easier |