CakePHP - Using Model::read() on a model with no table?

Read() is for when you're retrieving data based on the primary key, or id.

Read() is for when you're retrieving data based on the primary key, or id. If you're trying to read data from the underlying datasource (whatever that may be) but there's no primary key, then perhaps find('first', ...) is what you might want. If you do have a primary key, but it's not called 'id' (perhaps 'field'), then assign var $primaryKey = 'field'; in the model, and you should be fine to use read, based on that field data.

Incidentally, what is the underlying data source?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions