1 answer
0 votes
form helper required class for not empty fields on hasOne Model
I got a form where I submit data for multiple models.
The validation for the Database is no problem. With the
$user = $this->Employee->saveAll($this->data, array('validate' => 'first'));
all valdation Rules of other Models are checked.
Now my...
2 answers
0 votes
How Save Multiple HasOne relations?
I have the models:
Content
var $hasOne = array('ContentsContact', 'ContentsLocation', 'ContentsSchedule');
ContentsContact
var $hasOne = array('Content');
ContentsLocation
var $hasOne = array('Content');
ContentsSchedule
var $hasOne =...
0 answers
0 votes
hasone problem
I ahve a table machine that has one service (the id id of service foreign key at machine).
So when I put at machine model the code nothing fetched but when I delete all machines are shown, what is wrong?
var $hasOne...
1 answer
0 votes
How to register a user and at the same time create a record in Account ( hasOne relation without form)
Hi
I am new to cake php and as a practice I am working on one simple
project.
I have tree model user, account and contact as below. (There is only
one form for user registration and no form for add action to account).
user model :
var $name =...