Log message #2298594

# At Username Text
# Sep 21st 2011, 15:17 ADmad Oleander: if $data is the var you are passing to model->save() you can set $data['Foo']['post_type_id'] = x
# Sep 21st 2011, 15:14 Oleander when saving a post, i need to set post_type_id, do i only have two options. 1. set post_type_id in form as hidden value, or get find post_type_id in model before save? Is it possible for cake when saving to find the id $this->data['Post'Type]['name'] = 'foo' ?
# Sep 21st 2011, 15:14 jbaanus I might have had a typo in the model variable then
# Sep 21st 2011, 15:14 jbaanus ah, nice, it does support it
# Sep 21st 2011, 15:13 ADmad jbaanus: https://github.com/cakephp/cakephp/blob/1.3/cake/libs/model/datasources/dbo/dbo_postgres.php#L275
# Sep 21st 2011, 15:10 ADmad )
# Sep 21st 2011, 15:10 jbaanus Actually it was just easier to alter sequence name
# Sep 21st 2011, 15:09 jbaanus Model has primary key (ID usually) and PostgreSQL has sequence for it. When it is automatically created, the the sequence name is usually table_id_seq. I have a differently named sequence but Cake does not recognise it
# Sep 21st 2011, 15:08 ADmad jbaanus: you mean primary key?
# Sep 21st 2011, 15:06 Oleander hey
# Sep 21st 2011, 15:04 jbaanus Can I define custom sequence for a Model's key field (PostgreSQL)
# Sep 21st 2011, 15:02 daVinciWanaB i've asked 4 or 5 questions in here and gotten half of one answer, and been ridiculed 3 times
# Sep 21st 2011, 15:01 daVinciWanaB i can't believe how unhelpful this room is - it's kind of amazing
# Sep 21st 2011, 15:00 Section58 can you feel the love
# Sep 21st 2011, 14:59 dogmatic69 obviously not met savant yet
# Sep 21st 2011, 14:58 daVinciWanaB funny how you're always a smartass?
# Sep 21st 2011, 14:57 dogmatic69 funny, that is not what was asked just now
# Sep 21st 2011, 14:57 Lemon|work magic, always magic
# Sep 21st 2011, 14:56 daVinciWanaB section58 - wasn't being facetious - think my question is a valid cake question since i'm asking "how does Cake's autoLinkUrls detect a link"
# Sep 21st 2011, 14:56 dogmatic69 /whois <username> will give you the host mask
# Sep 21st 2011, 14:55 dogmatic69 /ignore <host-mask>
# Sep 21st 2011, 14:55 Section58 being facetious doesn't help you here
# Sep 21st 2011, 14:55 daVinciWanaB is there a way to ingore people in this chat?
# Sep 21st 2011, 14:55 dogmatic69 cake helpers have methods, not functions
# Sep 21st 2011, 14:55 daVinciWanaB anyway - i appreciate your clarification, Section58
# Sep 21st 2011, 14:54 Section58 as the magic in that is regex
# Sep 21st 2011, 14:54 daVinciWanaB if i wanted to ask a question about a function in a cake helper - would that need to be in #php then?
# Sep 21st 2011, 14:54 dogmatic69 you asking what the regex does
# Sep 21st 2011, 14:54 Section58 its not if your asking what it does
# Sep 21st 2011, 14:54 daVinciWanaB since it's Cake's autoLink code
# Sep 21st 2011, 14:54 daVinciWanaB it's in the cake helper - thought it could be a cake question
# Sep 21st 2011, 14:53 Section58 that was very polite for him
# Sep 21st 2011, 14:53 daVinciWanaB in his normal "polite" way ;)
# Sep 21st 2011, 14:53 Section58 *with your query
# Sep 21st 2011, 14:53 Section58 to get more help from your query
# Sep 21st 2011, 14:53 Section58 he was telling you to goto #regex
# Sep 21st 2011, 14:53 dogmatic69 69...
# Sep 21st 2011, 14:52 daVinciWanaB dogmatic: ?
# Sep 21st 2011, 14:52 dogmatic69 #regex
# Sep 21st 2011, 14:50 daVinciWanaB is that first part checking to make sure an http DOESN'T exist already? or...?
# Sep 21st 2011, 14:50 daVinciWanaB can anyone explain what this is doing (from text helper in autoLinkUrls): '#(?<!href="|">)((?:https?|ftp|nntp)://[^\s<>()]+)#i'