Re: Model Behavior function replaces passed data with model object

2009-07-09 Thread Brendon Kozlowski (Realm)
I've actually completed most of the work in an Mcrypt Behavior. I need to finish up a few things and get automatic decryption working for related models. You're more than welcome to see my code if you'd like (I intend to share it on the Bakery when I'm sure it's as close to done as I can get

Model Behavior function replaces passed data with model object

2009-07-08 Thread mehodgson
I am having a weird problem with a new model behavior I am trying to implement. When I try to pass a value ($data) into the model behavior function the passed value is replaced with the model object. The passed value is a string before $this-enCrypt() is called, but within the behavior function

Re: Model Behavior function replaces passed data with model object

2009-07-08 Thread Jon Bennett
Hi, I am having a weird problem with a new model behavior I am trying to implement. When I try to pass a value ($data) into the model behavior function the passed value is replaced with the model object. The passed value is a string before $this-enCrypt() is called, but within the behavior

Re: Model Behavior function replaces passed data with model object

2009-07-08 Thread mehodgson
Sorry, I had a typo in the original post...model function should be as follows: Model: function save($data = null, $validate = true, $fieldList = array()) { if(isset($data['Model']['field']) $data['Model'] ['field']) {

Re: Model Behavior function replaces passed data with model object

2009-07-08 Thread mehodgson
Du'oh...my bad...forgot about that. It's been a while since I have written a behavior. Thanks. On Jul 8, 12:01 pm, Jon Bennett jmbenn...@gmail.com wrote: Hi, I am having a weird problem with a new model behavior I am trying to implement. When I try to pass a value ($data) into the model