Skip to content

Instantly share code, notes, and snippets.

@notomato
Created August 17, 2012 09:55
Show Gist options
  • Save notomato/3377573 to your computer and use it in GitHub Desktop.
Save notomato/3377573 to your computer and use it in GitHub Desktop.
Setting custom post source/connection
<?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