I was using doctrine 1.2, but my models already generated by doctrine 1.2, ok, it worked fine. Now, I tried to create a new model and I have some problems, Doctrine didn't generate my table model class correctly.
It generated the class
Parse error: syntax error, unexpected '{', expecting T_STRING in /home/nei-rauni/projetos/booking/trunk/lib/model/doctrine/HotelMetadataTabl e.class.php on line 5
doctrine 1.2: class HotelMetadataTable extends {
}
I needed to back to doctrine 1.1, remove the classess and run the build-model task again.
doctrine 1.1: class HotelMetadataTable extends Doctrine_Table {
}
Regards,
Nei
-- Nei Rauni Santos nra...@gmail.com +55 41 85020985
> I was using doctrine 1.2, but my models already generated by doctrine 1.2,
> ok, it worked fine. Now, I tried to create a new model and I have some
> problems, Doctrine didn't generate my table model class correctly.
> It generated the class
> Parse error: syntax error, unexpected '{', expecting T_STRING in
> /home/nei-rauni/projetos/booking/trunk/lib/model/doctrine/HotelMetadataTabl e.class.php
> on line 5
> doctrine 1.2:
> class HotelMetadataTable extends
> {
> }
> I needed to back to doctrine 1.1, remove the classess and run the
> build-model task again.
> I looked into the code and it seems to be working ok.
> Could you please give me the script that you're using to generate your
> models?
> Cheers,
> On Wed, Nov 4, 2009 at 11:45 AM, Nei Rauni Santos <nra...@gmail.com>
> wrote:
> > I was using doctrine 1.2, but my models already generated by doctrine
> 1.2,
> > ok, it worked fine. Now, I tried to create a new model and I have some
> > problems, Doctrine didn't generate my table model class correctly.
You can contact Jonathan about Doctrine, Symfony and Open-Source or for
training, consulting, application development, or business related questions
at jonathan.w...@sensio.com
On Wed, Nov 4, 2009 at 12:32 PM, Jonathan Wage <jonw...@gmail.com> wrote:
> I think a ticket is open for this. It is a bug. I'll try and fix it today.
> - Jon
> On Wed, Nov 4, 2009 at 8:58 AM, Guilherme Blanco <
> guilhermebla...@gmail.com> wrote:
>> I looked into the code and it seems to be working ok.
>> Could you please give me the script that you're using to generate your
>> models?
>> Cheers,
>> On Wed, Nov 4, 2009 at 11:45 AM, Nei Rauni Santos <nra...@gmail.com>
>> wrote:
>> > I was using doctrine 1.2, but my models already generated by doctrine
>> 1.2,
>> > ok, it worked fine. Now, I tried to create a new model and I have some
>> > problems, Doctrine didn't generate my table model class correctly.
> You can contact Jonathan about Doctrine, Symfony and Open-Source or for
> training, consulting, application development, or business related questions
> at jonathan.w...@sensio.com
-- Nei Rauni Santos
nra...@gmail.com
+55 41 85020985
> On Wed, Nov 4, 2009 at 12:32 PM, Jonathan Wage<jonw...@gmail.com> wrote:
>> I think a ticket is open for this. It is a bug. I'll try and fix it today.
>> On Wed, Nov 4, 2009 at 8:58 AM, Guilherme Blanco< >> guilhermebla...@gmail.com> wrote:
>>> I looked into the code and it seems to be working ok.
>>> Could you please give me the script that you're using to generate your >>> models?
>>> Cheers,
>>> On Wed, Nov 4, 2009 at 11:45 AM, Nei Rauni Santos<nra...@gmail.com> >>> wrote: >>>> I was using doctrine 1.2, but my models already generated by doctrine >>> 1.2, >>>> ok, it worked fine. Now, I tried to create a new model and I have some >>>> problems, Doctrine didn't generate my table model class correctly.
>>>> It generated the class
>>>> Parse error: syntax error, unexpected '{', expecting T_STRING in
>>> /home/nei-rauni/projetos/booking/trunk/lib/model/doctrine/HotelMetadataTabl e.class.php >>>> on line 5
>>>> doctrine 1.2: >>>> class HotelMetadataTable extends >>>> {
>>>> }
>>>> I needed to back to doctrine 1.1, remove the classess and run the >>>> build-model task again.