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
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
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();
}
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
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
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
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
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
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
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
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.
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
12 matches
Mail list logo