Thanks for your answer, but I can't find the error.
My Controller looks like this:

KundenController.php
<?php

class KundenController extends AppController {

    var $name = 'Kunde';
    ....
?>

Kunde.php (App/Model)
<?php

class Kunde extends AppModel {

    public $name = 'Kunde';
    public $useTable = 'kunden';
    public $hasMany = array(
        'Vertrag' => array(
            'className' => 'Vertrag',
            'foreignKey' => 'vn_id'
        )
    );

}

?>

And here I am calling the function erstelleAuswahl()
VertraegeController.php
<?php

class VertraegeController extends AppController {
    public $name = 'Vertrag';
    public $uses = array('Schluessel', 'Kunde', 'Vertrag');
.....
?>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to