Created
August 17, 2012 09:55
-
-
Save notomato/3377573 to your computer and use it in GitHub Desktop.
Setting custom post source/connection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace app\models; | |
class Posts extends \lithium\data\Model { | |
protected $_meta = array( | |
'key' => 'custom_id', | |
'source' => 'custom_posts_table', | |
'connection' => 'legacy_mysql_db' | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment