Commit e857505e authored by Taylor Otwell's avatar Taylor Otwell

Map eloquent classes.

Signed-off-by: 's avatarTaylor Otwell <taylorotwell@gmail.com>
parent 003f78cb
......@@ -62,6 +62,30 @@ spl_autoload_register(array('Laravel\\Autoloader', 'load'));
Autoloader::namespaces(array('Laravel' => path('sys')));
/*
|--------------------------------------------------------------------------
| Register Eloquent Mappings
|--------------------------------------------------------------------------
|
| A few of the Eloquent ORM classes use a non PSR-0 naming standard so
| we will just map them with hard-coded paths here since PSR-0 uses
| underscores as directory hierarchy indicators.
|
*/
Autoloader::map(array(
'Laravel\\Database\\Eloquent\\Relationships\\Belongs_To'
=> path('sys').'database/eloquent/relationships/belongs_to'.EXT,
'Laravel\\Database\\Eloquent\\Relationships\\Has_Many'
=> path('sys').'database/eloquent/relationships/has_many'.EXT,
'Laravel\\Database\\Eloquent\\Relationships\\Has_Many_And_Belongs_To'
=> path('sys').'database/eloquent/relationships/has_many_and_belongs_to'.EXT,
'Laravel\\Database\\Eloquent\\Relationships\\Has_One'
=> path('sys').'database/eloquent/relationships/has_one'.EXT,
'Laravel\\Database\\Eloquent\\Relationships\\Has_One_Or_Many'
=> path('sys').'database/eloquent/relationships/has_one_or_many'.EXT,
));
/*
|--------------------------------------------------------------------------
| Set The CLI Options Array
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment