Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // A1::instance('a1/user')->get_user():
- object Model_User(37) {
- protected _has_many => ...
- protected _config => string(7) "a1/user"
- protected _ignored_columns => array(2) (
- 0 => string(16) "password_confirm"
- )
- protected _rules => ...
- protected _filters => ...
- protected _callbacks => ...
- protected _user_model => NULL
- protected _columns => NULL
- protected _has_one => array(0)
- protected _belongs_to => array(0)
- protected _load_with => array(0)
- protected _validate => NULL
- protected _labels => array(0)
- protected _object => array(7) (
- "id" => string(1) "1"
- "email" => ...
- "password" => string(8) "qqqq2222"
- "nick" => ...
- "token" => ...
- "last_login" => ...
- "logins" => ...
- )
- protected _changed => array(0)
- protected _related => array(0)
- protected _loaded => bool TRUE
- protected _saved => bool TRUE
- protected _sorting => array(1) (
- "id" => string(3) "ASC"
- )
- protected _foreign_key_suffix => string(3) "_id"
- protected _object_name => string(4) "user"
- protected _object_plural => NULL
- protected _table_name => string(5) "users"
- protected _table_columns => array(7) (
- "id" => array(13) (
- ...
- )
- "email" => array(12) (
- ...
- )
- "password" => array(12) (
- ...
- )
- "nick" => array(12) (
- ...
- )
- "token" => array(12) (
- ...
- )
- "last_login" => array(13) (
- ...
- )
- "logins" => array(13) (
- ...
- )
- )
- protected _updated_column => NULL
- protected _created_column => NULL
- protected _primary_key => string(2) "id"
- protected _primary_val => string(4) "name"
- protected _table_names_plural => bool TRUE
- protected _reload_on_wakeup => bool TRUE
- protected _db => object Database_MySQL(6) {
- protected _connection_id => string(40) "e98693e293defee7604421beb1e2aed03a0fa182"
- protected _identifier => string(1) "`"
- public last_query => string(88) "SELECT `users`.* FROM `users` WHERE `users`.`id` = '1' ORDER BY `users`.`id` ASC LIMIT 1"
- protected _instance => string(7) "default"
- protected _connection => resource(mysql link)
- protected _config => array(6) (
- "type" => string(5) "mysql"
- "connection" => array(3) (
- "hostname" => string(9) "localhost"
- "database" => string(6) "kohana"
- "persistent" => bool FALSE
- )
- "table_prefix" => string(0) ""
- "charset" => string(4) "utf8"
- "caching" => bool FALSE
- "profiling" => bool TRUE
- )
- }
- protected _db_applied => array(0)
- protected _db_pending => array(0)
- protected _db_reset => bool TRUE
- protected _db_builder => NULL
- protected _with_applied => array(0)
- protected _preload_data => array(0)
- }
- // ORM::factory('user', 1)->find():
- object Model_User(37) {
- protected _has_many => ...
- protected _config => string(7) "a1/user"
- protected _ignored_columns => array(2) (
- "password_confirm" => string(16) "password_confirm"
- )
- protected _rules => ....
- protected _filters => ....
- protected _callbacks => ....
- protected _user_model => string(4) "user"
- protected _columns => array(5) (
- "username" => string(5) "email"
- "password" => string(8) "password"
- "token" => string(5) "token"
- "last_login" => string(10) "last_login"
- "logins" => string(6) "logins"
- )
- protected _has_one => array(0)
- protected _belongs_to => array(0)
- protected _load_with => array(0)
- protected _validate => NULL
- protected _labels => array(0)
- protected _object => array(7) (
- "id" => string(1) "1"
- "email" => ...
- "password" => string(8) "qqqq2222"
- "nick" => ...
- "token" => ...
- "last_login" => ...
- "logins" => ...
- )
- protected _changed => array(0)
- protected _related => array(0)
- protected _loaded => bool FALSE
- protected _saved => bool FALSE
- protected _sorting => array(1) (
- "id" => string(3) "ASC"
- )
- protected _foreign_key_suffix => string(3) "_id"
- protected _object_name => string(4) "user"
- protected _object_plural => string(5) "users"
- protected _table_name => string(5) "users"
- protected _table_columns => array(7) (
- "id" => array(13) (
- ...
- )
- "email" => array(12) (
- ...
- )
- "password" => array(12) (
- ...
- )
- "nick" => array(12) (
- ...
- )
- "token" => array(12) (
- ...
- )
- "last_login" => array(13) (
- ...
- )
- "logins" => array(13) (
- ...
- )
- )
- protected _updated_column => NULL
- protected _created_column => NULL
- protected _primary_key => string(2) "id"
- protected _primary_val => string(4) "name"
- protected _table_names_plural => bool TRUE
- protected _reload_on_wakeup => bool TRUE
- protected _db => object Database_MySQL(6) {
- protected _connection_id => string(40) "e98693e293defee7604421beb1e2aed03a0fa182"
- protected _identifier => string(1) "`"
- public last_query => string(88) "SELECT `users`.* FROM `users` WHERE `users`.`id` = '1' ORDER BY `users`.`id` ASC LIMIT 1"
- protected _instance => string(7) "default"
- protected _connection => resource(mysql link)
- protected _config => array(6) (
- "type" => string(5) "mysql"
- "connection" => array(3) (
- "hostname" => string(9) "localhost"
- "database" => string(6) "kohana"
- "persistent" => bool FALSE
- )
- "table_prefix" => string(0) ""
- "charset" => string(4) "utf8"
- "caching" => bool FALSE
- "profiling" => bool TRUE
- )
- }
- protected _db_applied => array(0)
- protected _db_pending => array(0)
- protected _db_reset => bool TRUE
- protected _db_builder => NULL
- protected _with_applied => array(0)
- protected _preload_data => array(0)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement