[fw-general] Reconnect to enhanced row

2010-04-12 Thread Alayn Gortazar
Hi there, I'm trying to reconnect to a previously serialized row, but it throws me the next exception: The specified Table does not have the same columns as the Row The confliction DbTable instance has the next declared col which I think is the reason for not being able to reconnect: protected

Re: [fw-general] Re: Zend_Soap calls returning NULL

2010-04-12 Thread Andrew Ballard
On Sat, Apr 10, 2010 at 3:49 AM, Benjamin Eberlei kont...@beberlei.de wrote: Hello Andrew, what kind of op-code cache are you using? I have heard from people that this what you are describing is happening with e-accelerator, personally I never had a problem with APC. We are using

[fw-general] Odd Zend_Db_Table_Abstract error, is it me or a bug?

2010-04-12 Thread milesap
I have an account model like so: ?php class Account extends Zend_Db_Table_Abstract { protected $_name = 'account'; public function __construct() { $this-_acc = $this-getCurrentAccount(); return parent::__construct(); }

Re: [fw-general] Odd Zend_Db_Table_Abstract error, is it me or a bug?

2010-04-12 Thread Alayn Gortazar
Yo need to call parent's costructor to initialize the object before using the find method. I think the constructor doesn't return any value, so this should work: public function __construct() { parent::__construct(); $this-_acc = $this-getCurrentAccount(); } lun, 12-04-2010 a

Re: [fw-general] Reconnect to enhanced row

2010-04-12 Thread Luiz Damim
Are you caching the table metadata? I'm using caching and this happens to me when I add/remove columns from the table. Try cleaning the cache, this solves the problem. On Mon, Apr 12, 2010 at 8:09 AM, Alayn Gortazar al...@irontec.com wrote: Hi there, I'm trying to reconnect to a previously

Re: [fw-general] Reconnect to enhanced row

2010-04-12 Thread Alayn Gortazar
Thanks Luiz, I didn't realize about that, so I will have it on my mind fore the future :) Anyway, I tried cleaning and disabling the cache and still have no luck. As I said I think it has more to be with column's specification, but I don't know how to get rid of it. El lun, 12-04-2010 a las

[fw-general] Zend_Form odd problem

2010-04-12 Thread milesap
Is it possible for $form-getMessages() to be empty yet $form-getErrors() to contain an error? Here's the issue, I'm validating a ReCaptcha field which is working fine in my Zend_Form. If I forget to enter a value into the ReCaptcha field or if I get it wrong, the error message displays in

Re: [fw-general] Odd Zend_Db_Table_Abstract error, is it me or a bug?

2010-04-12 Thread Hector Virgen
You might be better off using the defining an init() method instead of overwriting the constructor: class Account extends Zend_Db_Table_Abstract { protected $_name = 'account'; public function init() { $this-_acc = $this-getCurrentAccount(); } /* ... */ } The

[fw-general] Re: Reconnect to enhanced row

2010-04-12 Thread Marko78
Hi, I declare by custom row vars as follows (note the underscore): protected $_tags = null; // array of tags from tags table linked to this row protected $_user = null; // user row object (note: only id saved to cached version) then I have setter and getter for this custom variable. My cached

[fw-general] help with decorators

2010-04-12 Thread Mike Wright
Hi all, I've been struggling to decorate a subform. It's almost there but I keep running into a 'gotcha'. I can't figure out how to wrap the innermost dt/dd pairs in a dl element. If I add another HtmlTag the outer one no longer renders and the inner one inherits the outer one's class

Re: [fw-general] [SOLVED]help with decorators

2010-04-12 Thread Mike Wright
I've been struggling to decorate a subform. It's almost there but I keep running into a 'gotcha'. I can't figure out how to wrap the innermost dt/dd pairs in a dl element. If I add another HtmlTag the outer one no longer renders and the inner one inherits the outer one's class attribute.

Re: [fw-general] Where to issue final common logic

2010-04-12 Thread Hector Virgen
Are you concerned with the result of Doctrine's flush? If so, I'd suggest flushing before rendering the layout by using the postDispatch hook in a controller plugin. If you use dispatchLoopShutdown hook, the layout will already have been rendered. You'll need to test if the request has finished