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

'Creating Data Sources' has some deprecated code. #72

Open
housni opened this issue Aug 21, 2013 · 0 comments
Open

'Creating Data Sources' has some deprecated code. #72

housni opened this issue Aug 21, 2013 · 0 comments

Comments

@housni
Copy link

housni commented Aug 21, 2013

I was creating a plugin so that I can communicate with a legacy API so I was reading up on Creating Data Sources.
It talks about using item() but it seems like the use of item() is deprecated.

This was brought to my attention by Mehdi (mehlah?) in this post at StackOverflow: Overriding data\Source::read() and using item() gives me incorrect results

Also, I ran into an error using the code from doc. For dependency injection, it defines service, entity and set for $_classes. However, I believe we also need to add 'schema' => 'lithium\data\DocumentSchema' because without that, I get the following error:

Fatal error: Uncaught exception 'lithium\core\ClassNotFoundException' with message 'Class `schema` of type `` not found.' in /var/www/lithium/clean/libraries/lithium/core/Libraries.php on line 693

lithium\core\ClassNotFoundException: Class `schema` of type `` not found. in /var/www/lithium/clean/libraries/lithium/core/Libraries.php on line 693

Thanks guys, I love this framework so much that I voluntarily break rest just so that I can mess around with it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants