I have big problem. I can't use (in both 0.10.4 and 0.11RC2) actAs and
loadTemplate together in one class. I've tried placing them in
setTableDefinition() and in setUp() (and combinations ;)).
class News extends Doctrine_Record
{
public $url;
public function setTableDefinition()
{
$this->hasColumn('title', 'string', 64);
$this->hasColumn('intro', 'string', 128);
$this->hasColumn('content', 'string', null);
}
public function setUp()
{
$this->actAs('Versionable');
$this->actAs('Timestampable');
$this->loadTemplate('hashTemplate');
}
On Tue, May 6, 2008 at 3:05 AM, <pawel.gniadkow...@vaiolabs.com> wrote:
> I have big problem. I can't use (in both 0.10.4 and 0.11RC2) actAs and > loadTemplate together in one class. I've tried placing them in > setTableDefinition() and in setUp() (and combinations ;)).
> class News extends Doctrine_Record > { > public $url;
> public function setTableDefinition() > { > $this->hasColumn('title', 'string', 64); > $this->hasColumn('intro', 'string', 128); > $this->hasColumn('content', 'string', null); > }
> public function setUp() > { > $this->actAs('Versionable'); > $this->actAs('Timestampable'); > $this->loadTemplate('hashTemplate'); > } > }
> Please provide some more information. The error you are getting, a failing
> test case, etc.
> If it is indeed a bug please create a ticket.
> Thanks, Jon
> On Tue, May 6, 2008 at 3:05 AM, <pawel.gniadkow...@vaiolabs.com> wrote:
> > I have big problem. I can't use (in both 0.10.4 and 0.11RC2) actAs and
> > loadTemplate together in one class. I've tried placing them in
> > setTableDefinition() and in setUp() (and combinations ;)).
> > class News extends Doctrine_Record
> > {
> > public $url;
On Fri, May 9, 2008 at 4:45 AM, <pawel.gniadkow...@vaiolabs.com> wrote:
> No error - "Versionable" is ignored when using any loadTemplate in > same class.
> On 8 Maj, 18:36, "Jonathan Wage" <jonw...@gmail.com> wrote: > > Please provide some more information. The error you are getting, a > failing > > test case, etc.
> > If it is indeed a bug please create a ticket.
> > Thanks, Jon
> > On Tue, May 6, 2008 at 3:05 AM, <pawel.gniadkow...@vaiolabs.com> wrote:
> > > I have big problem. I can't use (in both 0.10.4 and 0.11RC2) actAs and > > > loadTemplate together in one class. I've tried placing them in > > > setTableDefinition() and in setUp() (and combinations ;)).
> > > class News extends Doctrine_Record > > > { > > > public $url;
> Can you create a ticket and a failing test case?
> Thanks, Jon
> On Fri, May 9, 2008 at 4:45 AM, <pawel.gniadkow...@vaiolabs.com> wrote:
> > No error - "Versionable" is ignored when using any loadTemplate in
> > same class.
> > On 8 Maj, 18:36, "Jonathan Wage" <jonw...@gmail.com> wrote:
> > > Please provide some more information. The error you are getting, a
> > failing
> > > test case, etc.
> > > If it is indeed a bug please create a ticket.
> > > Thanks, Jon
> > > On Tue, May 6, 2008 at 3:05 AM, <pawel.gniadkow...@vaiolabs.com> wrote:
> > > > I have big problem. I can't use (in both 0.10.4 and 0.11RC2) actAs and
> > > > loadTemplate together in one class. I've tried placing them in
> > > > setTableDefinition() and in setUp() (and combinations ;)).
> > > > class News extends Doctrine_Record
> > > > {
> > > > public $url;