Part of the EllisLab Network
   
1 of 42
1
DataMapper ORM v1.8.2
Posted: 30 November 2011 03:43 PM   [ Ignore ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  4108
Joined  11-04-2008

DataMapper ORM 1.8.2

Download the Latest Version Here

  View the change log and the upgrade process
  Having issues? Please look through the Troubleshooting Guide & FAQs
  View the Complete Manual
  Search the Manual
  (Due to the server’s caching configuration, you may need to forcibly refresh your browser to see the changes in the manual.)

DataMapper (DM) is an Object-Relational Mapper that builds on ActiveRecord.  Data is loaded from database tables into objects, and relationships can be managed through simple, easy-to-read functions.

To install DataMapper ORM, the (fairly simple) upgrade process is described here.

DataMapper offers these features:
  • Everything is an object!
  • Easy to setup, easy to use.
  • Custom Validation on object properties.
  • Lazy Loading (related objects are only loaded upon access).
  • Relations and their integrity are automatically managed for you.
  • One to One, One to Many, and Many to Many relations fully supported.
  • Select data in the style of Active Record (with or without Method Chaining).

You can learn much more from the manual.

———————————————————————————————————

Version 1.8.2:
  * New Features
      o Backported the DataMapper 2.0 bootstrap to get access to core classes in CodeIgniter version 2.0.3 and above.
      o Changed the way watched methods are processed. This allows extensions to replace core methods.
      o Add support for an absolute path for “extensions_path”.
      o Added a all_to_single_array() method to the array extension.
  * Bug Fixes
      o Added a default for nestedsets root field name as described in the documentation.
      o Fixed ignoring model configuration properties with a NULL or FALSE value.
      o Fixed broken trans_status() method.
  * Other Changes
      o Improved the way the available model paths are determined.
      o Several corrections to the documentation.

This version introduces a bootstrap loader that needs to be installed in your index.php file, and will allow DataMapper to access CodeIgniters protected core methods and properties, while keeping CodeIgniters core extension mechanism operational (DataMapper does not introduce MY_ versions of libraries).

Make sure to check out the changelog — you won’t want to skip this update!

————————————————————————————————————————

Bug reports and feature requests:

DataMapper has moved to Github for the development of version 2.0. Please use the issue register / bug tracker on github to report new bugs or for new feature requests. If you do, please include in your description is link to the thread on this forum discussing the issue (if possible), so I have a link between the two and can keep track of all issues.

————————————————————————————————————————

Older Discussions: Version 1.8.1, Version 1.8.0, Version 1.7.1, Version 1.6.2, Version 1.5.4, Version 1.5.3 and older.

Thanks goes to Overzealous, for all he has achieved with DMZ. And to stensi, for providing such an amazing code base to work on.

 Signature 

WanWizard.eu | Modular CI, an HMVC solution | DataMapper ORM

Profile
 
 
Posted: 30 November 2011 04:54 PM   [ Ignore ]   [ # 1 ]  
Summer Student
Total Posts:  5
Joined  04-11-2009

Ty so much! Great Job.

Profile
 
 
Posted: 30 November 2011 05:38 PM   [ Ignore ]   [ # 2 ]  
Grad Student
Avatar
Rank
Total Posts:  97
Joined  09-17-2008

Great job! Congrats!

I’ll test soon wink

Profile
 
 
Posted: 30 November 2011 09:56 PM   [ Ignore ]   [ # 3 ]  
Summer Student
Total Posts:  20
Joined  11-15-2009

Excellent! I have been eagerly waiting for this. Thanks for all the hard work.

Profile
 
 
Posted: 01 December 2011 12:06 AM   [ Ignore ]   [ # 4 ]  
Summer Student
Total Posts:  10
Joined  10-20-2010

WanWizard, Thank You Very Much~~~!

Profile
 
 
Posted: 01 December 2011 01:37 AM   [ Ignore ]   [ # 5 ]  
Summer Student
Total Posts:  2
Joined  11-26-2011

Thank you!
Can not wait for a try.

Profile
 
 
Posted: 01 December 2011 02:58 AM   [ Ignore ]   [ # 6 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  4108
Joined  11-04-2008

A bug has surfaced.

If you use validation in DataMapper, and you haven’t loaded the form validation library, DataMapper generates a missing method error on line 1138.

You can work around this by either loading the form validation library yourself (through autoload or manually) or by removing said line:

$this->load->unset_form_validation_class(); 

I’ll try to fix this and update the distribution tonight.

 Signature 

WanWizard.eu | Modular CI, an HMVC solution | DataMapper ORM

Profile
 
 
Posted: 01 December 2011 03:02 AM   [ Ignore ]   [ # 7 ]  
Summer Student
Total Posts:  2
Joined  11-26-2011

Thank you!
I have removed this code line.
It works.

Profile
 
 
Posted: 01 December 2011 05:09 AM   [ Ignore ]   [ # 8 ]  
Summer Student
Total Posts:  6
Joined  11-24-2011

than you, i will test as soos as i can

 Signature 

Aviosoft Player

Profile
 
 
Posted: 01 December 2011 08:12 AM   [ Ignore ]   [ # 9 ]  
Grad Student
Avatar
Rank
Total Posts:  97
Joined  09-17-2008

I was tryed to upgrade, follow all instructions, but doesn’t work. The error is:

Fatal errorCall to protected method DataMapper::add_model_path() from context 'MY_Controller' in xxx on line xxx 

Obviously, as seen, I’m using the MY_Controller with some common methods and I’m using too the Datamapper::add_model_path():

Datamapper::add_model_path
(
 array
 (
  
APPPATH 'modules/company',
  
APPPATH 'modules/location',
  
APPPATH 'modules/user'
 
)
); 

What might be happening?

Profile
 
 
Posted: 01 December 2011 09:00 AM   [ Ignore ]   [ # 10 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  4108
Joined  11-04-2008

Just change the protected to public. I’ll fix this tonight.

 Signature 

WanWizard.eu | Modular CI, an HMVC solution | DataMapper ORM

Profile
 
 
   
1 of 42
1