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

Website / Manual #17

Open
BrainFeeder opened this issue Jul 30, 2018 · 5 comments
Open

Website / Manual #17

BrainFeeder opened this issue Jul 30, 2018 · 5 comments

Comments

@BrainFeeder
Copy link

Hello, I can't find the online manual? It has been a while since I needed it, but now I need it :D

@richplane
Copy link

That is a worrying development! The copy on the website of the previous developer (WanWizard) has also gone behind an invalid security certificate. I think we can safely say that Datamapper is dead.

But the manual is in the Github - clone it and you can read it in from your local filesystem (datamapper/manual/index.html)

@BrainFeeder
Copy link
Author

Hmm 👎 I liked using this, and kept hopes up for updates to support relations better in some situations.
Guess I'll have to look for a replacement, any tips?

@BrainFeeder
Copy link
Author

And according to manual it should be possible to order by join field. However if I try it, it results in SQL error. Something wierd going on with the field name...

Error Number: 1054 - Unknown column 'property_link_services_properties.value' in 'order clause' - SELECT `app_services`.*, `lu_properties`.`id` AS property_id, `lu_properties`.`name` AS property_name, `lu_properties`.`unit_id` AS property_unit_id, `lu_properties`.`active` AS property_active FROM (`app_services`) LEFT OUTER JOIN `link_services_properties` link_services_properties ON `app_services`.`id` = `link_services_properties`.`service_id` LEFT OUTER JOIN `lu_properties` lu_properties ON `lu_properties`.`id` = `link_services_properties`.`property_id` WHERE `app_services`.`is_hosting` = 1 AND `app_services`.`name` LIKE '%Linux%' ORDER BY `property_link_services_properties`.`value` asc - Filename: /home/de1210mo/public_html/crm/v2/libraries/datamapper.php - Line Number: 1411

It should be link_services_properties.value

@richplane
Copy link

Looks like you need to open a separate issue for that & post your code there if you think there's something wrong with the system or the manual. Or maybe go to at StackOverflow if you can't get it working.

In terms of a replacement, the only thing I've tried is integrating Laravel's Eloquent with CI2. I really hope for the sake of CodeIgniter that there's an easier solution to achieve ORM within CodeIgniter than doing that.

@BrainFeeder
Copy link
Author

BrainFeeder commented Aug 1, 2018

For some projects (our company API) we started from another platform because CI could not fit the needs (or we would be drawning in work) anymore. Guess we should start planning to switch all applications :D

The 'sort by join field' problem was solved, forgot to include_join_fields().

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

2 participants