Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Uppercase letters within words in database schema #7

Open
MDT-FGI opened this issue Aug 16, 2016 · 2 comments
Open

[Bug] Uppercase letters within words in database schema #7

MDT-FGI opened this issue Aug 16, 2016 · 2 comments

Comments

@MDT-FGI
Copy link

MDT-FGI commented Aug 16, 2016

I created a simple single inheritance like described here:
http://propelorm.org/documentation/08-inheritance.html#single-table-inheritance

While adjusting it a bit, I noticed a possible bug.
When I ran the according code, I got an error. Code snippet:
$bo = new BookObject();

I get the following error:

Fatal error: Class 'Bookobject' not found in /home/sandbox/generated-classes/BookObject.php on line 17

It should be reproducible, here is the fiddle:
http://sandbox.propelorm.org/ef21a21

Let me know if you need more information or another example.

@MDT-FGI
Copy link
Author

MDT-FGI commented Aug 16, 2016

It seems like it messes the sandbox up also when using an underscore (like "book_store") in the "class" attribute of the inheritance order. At least I think so. I couldn't further test it right now since I ran low on time.

@MDT-FGI
Copy link
Author

MDT-FGI commented Aug 17, 2016

Today I build my project and it's clear now that there are some issues with uppercase letters within the database schema parameters. It got mixed up, some classes are like "BookObject", some are "Bookobject".

So this is not only a problem on the sandbox but a problem in Propel itself.
I guess you need to do some further investigation yourself how this problem is caused.

@MDT-FGI MDT-FGI changed the title Single inheritance bug Uppercase letters in database schema [Bug] Aug 17, 2016
@MDT-FGI MDT-FGI changed the title Uppercase letters in database schema [Bug] Uppercase letters within words in database schema [Bug] Aug 17, 2016
@MDT-FGI MDT-FGI changed the title Uppercase letters within words in database schema [Bug] [Bug] Uppercase letters within words in database schema Aug 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant