[transfer-dev] Extra Value in array when editing a value in ManyToMany

2009-05-27 Thread Devon Burriss
As an example I have a many to many relationship between Product and ProductCategory. When I edit a product, it updates the DB but I have a duplicate in my Product array. This duplicate is not in the DB, just the array. Any ideas why this would happen? Thanks Devon

[transfer-dev] Re: Extra Value in array when editing a value in ManyToMany

2009-05-27 Thread Devon Burriss
Ok. That didn't actually work since it also stops me from adding new ones... On May 27, 10:46 am, Devon Burriss de...@nervstudios.co.za wrote: Not sure I understand the question correctly. I am only adding 1 at a time if that is the question. This problem is occurring when I edit an existing

[transfer-dev] Re: Extra Value in array when editing a value in ManyToMany

2009-05-27 Thread Devon Burriss
Ok. So now I can add and edit without error or duplicates. Solution was... If it breaks something else i'll post it but so far this worked for me. Please not that I am saving the product with transfer and the call the function below, passing through the saved transfer object as object and form

[transfer-dev] Re: Extra Value in array when editing a value in ManyToMany

2009-05-27 Thread Mark Mandel
I tend to clear() then re- add(), that works for me. Depends on your process. Mark On Wed, May 27, 2009 at 7:43 PM, Devon Burriss de...@nervstudios.co.zawrote: Ok. So now I can add and edit without error or duplicates. Solution was... If it breaks something else i'll post it but so far this

[transfer-dev] Re: Transfer and Apache RewriteMap

2009-05-27 Thread dickbob
Cripes Mark, that's worrying if you have no idea! I can't understand what Transfer might be asking of Apaches that's causing it to pass the request through the RewriteMap function. Up till now I've been using individual RewriteRule's without a prob. Even if I make the map file blank Transfer

[transfer-dev] Re: Transfer and Apache RewriteMap

2009-05-27 Thread Mark Mandel
It sounds like the rewrite is affecting expandPath() somehow... but I'm not sure. Mark On Wed, May 27, 2009 at 8:16 PM, dickbob dick...@gmail.com wrote: Cripes Mark, that's worrying if you have no idea! I can't understand what Transfer might be asking of Apaches that's causing it to pass

[transfer-dev] Re: Site Down?

2009-05-27 Thread Doug Arthur
It's back up now. Not sure if it was a hickup on my network or somewhere in between. But I'm glad it's working now. On May 27, 10:15 am, Matt Quackenbush quackfu...@gmail.com wrote: Works just fine in Texas. --~--~-~--~~~---~--~~ Before posting questions to the

[transfer-dev] Re: Database function calls?

2009-05-27 Thread Cameron Childress
Actually, my workaround is just about exactly the same thing you are doing. Unfortunately this uses the system datetime from CF, and not the DB. With a cluster of 3 CF machines and one DB machine this could result in 3 different times (if all the system times aren't synchronized properly). I

[transfer-dev] Re: Database function calls?

2009-05-27 Thread Bob Silverberg
Hmm, well, this may be a crazy idea, but here's what I'd do if I needed to accomplish what you are suggesting, which is to always return the same, synchronized datetime value regardless of which CF server the code was running on: I'd create a DateHelper object with a getNow() method that would

[transfer-dev] Re: Database function calls?

2009-05-27 Thread Cameron Childress
Yeah, that would be another way to solve the problem. In my case I suspect it would be easier just to spend a little time and get the time on all the servers in sync. This is one of those problems where I started by trying to wedge something into Transfer that it doesn't really do in a very