spadefoot / kohana-orm-leap

An ORM module for the Kohana PHP framework that is designed to work with all major databases.
http://spadefoot.github.io/kohana-orm-leap/
100 stars 25 forks source link

Guide API unexpected T_CONSTANT_ENCAPSED_STRING, expecting T_CASE or T_DEFAULT or '}' #21

Closed nyunyu95 closed 12 years ago

nyunyu95 commented 12 years ago

Hello,

I'm getting an error while trying to user my API guide. I'm getting this error :

"ErrorException [ Parse Error ]: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting T_CASE or T_DEFAULT or '}' MODPATH/leap/classes/base/db/drizzle/schema.php [ 68 ]"

The problem seems to come from the switch() used on the line 67.

switch ($actual_type) { 'blob' => array('type' => 'string', 'binary' => TRUE, 'character_maximum_length' => '65535'), ....., }

Are you sure about what you've done there ? :p I prefer to not try to fix your work. I could misunderstand it ! :)

Regards,

(I do not use drizzle or made any modifications on files)

nyunyu95 commented 12 years ago

I just noticed (trying to remove the schema.php file, just "to see") that I'm getting the same errors every schema.php files

spadefoot commented 12 years ago

At the moment, the schema.php files are ALL still under development and unfortunately do not work....my apologizes. I will look at speeding up their development here shortly.

As for the Drizzle connection, for some reason the drizzle functions seem to conflict with Kohana. If you got any ideas on how to resolve this conflict, I would be happy to add your changes. Otherwise, in the meantime, you can use the MySQL connections.

nyunyu95 commented 12 years ago

Thanks for you quick anwser !

My problem is not in the "use" of Drizzle (or whatever) connection. I can't access my API Guide (http://..../guide/api). All those schema.php files make that error appears.

I temporary fixed that problem by renaming the schema.php files that made this error appears but this is not a real solution !

spadefoot commented 12 years ago

Ok, I will comment out the code in those files so that such errors don't occur. Thank you for pointing out that issue! I will do that tonight.

nyunyu95 commented 12 years ago

Alright ! :) Thanks for your care ! If I see anything else, I'll tell you :)

spadefoot commented 12 years ago

Just uploaded the commented out code.