IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Ruby on Rails Discussion :

habtm records problems


Sujet :

Ruby on Rails

  1. #1
    Candidat au Club
    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    15
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 15
    Points : 4
    Points
    4
    Par défaut habtm records problems
    Hi there,

    I' have three tables: chiratfilm | chiratfonction | chiratpersonne.

    my models are:

    class tfilm < ActiveRecord::Base

    has_many :film_fonctions, :dependent => :destroy
    has_many :fonctions, :through => :tfilm_fonctions

    has_many :film_personnages, :dependent => :destroy
    has_many :personnages, :through => :film_personnages

    end

    -----

    class fonction < ActiveRecord::Base

    has_many :film_fonctions, :dependent => :destroy
    has_many :films, :through => :film_fonctions

    has_many :fonction_personnages, :dependent => :destroy
    has_many :personnages, :through => :fonction_personnages

    end

    -----

    class personnage < ActiveRecord::Base

    has_many :fonction_personnages, :dependent => :destroy
    has_many :fonctions, :through => :fonction_personnages

    has_many :film_personnages, :dependent => :destroy
    has_many :films, :through => :film_personnages

    end

    ----

    well, my problem is, in a form view for my film i want to choose many fonction and i also want to choose many personne depedent of fonction.

    for example, i have this form view for a new or edit film:

    <% for fonction in Fonction.find(:all, :order =>'titre ASC' ) %>
    <div>
    <%= check_box_tag "film[fonction_ids][]", fonction.id, @film.fonctions.include?(fonction) %>
    <%= link_to_function(fonction.titre) do |page|
    page.visual_effect :toggle_blind, "#{fonction.id}"
    end
    %>
    <hr size="1" width="100%" align="left" border="dotted"/>
    </div>
    <div id="<%= fonction.id %>" style="display:none;" >
    <div id="perso">
    <% for personnage in Personnage.find(:all, :order =>'titre ASC' ) %>
    <div>
    <%= check_box_tag "film[personnage_ids][]", personnage.id, @film.personnages.include?(personnage) %>
    <%= personnage.titre %>
    <hr size="1" width="100%" align="left" border="dotted"/>
    </div>
    <% end -%>
    </div>
    </div>

    <% end -%>

    and my controller for the film

    def create
    @film = Film.new(params[:film])

    respond_to do |format|
    if @film.save
    flash[:notice] = 'film was successfully created.'
    format.html { redirect_to admin_films_url }
    format.xml { render ml => @film, :status => :created, :location => @film }
    else
    format.html { render :action => "new" }
    format.xml { render ml => @film.errors, :status => :unprocessable_entity }
    end
    end
    end


    def update
    params[:chiratfilm][:chiratfonction_ids] ||=[]
    params[:chiratfilm][:chiratpersonnage_ids] ||=[]
    @film = film.find(params[:id])


    respond_to do |format|
    if @film.update_attributes(params[:film])
    flash[:notice] = 'film was successfully updated.'
    format.html { redirect_to admin_films_url }
    format.xml { head :ok }
    else
    format.html { render :action => "edit" }
    format.xml { render ml => @film.errors, :status => :unprocessable_entity }
    end
    end
    end


    actually i can record a film with many fonctions but not many personnage for many function into the film.

    so i want 1 film with many fonctions and those many fonctions have diferent many personnages…

    any idea ?

    pleeeeeaaassseee !!!!

    thanks !

    kinggordo


    am i clear ?

  2. #2
    Membre averti Avatar de Javix
    Inscrit en
    Juin 2007
    Messages
    531
    Détails du profil
    Informations forums :
    Inscription : Juin 2007
    Messages : 531
    Points : 353
    Points
    353
    Par défaut
    La déclaration de 'has_many :fonctions, :through => :tfilm_fonctions' n'est pas correcte, - tu dois d'bord déclarer le modèle via lequel tu feras 'through' par après, ce qui n'est pas le cas pour 'tfilm_fonctions' qui n'est déclaré null part. Peut être c'est juste une faute de frappe et tu voulais dire

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    has_many :fonctions, :through => :film_fonctions
    class tfilm < ActiveRecord::Base

    has_many :film_fonctions, :dependent => :destroy
    has_many :fonctions, :through => :tfilm_fonctions

    has_many :film_personnages, :dependent => :destroy
    has_many :personnages, :through => :film_personnages

    end

    -----
    Ici aussi une erreur, tu pointes vers le modèle Film, mais en réalité la classe s'appelle TFilm, il faudra indiquer le nom de la table à utiliser s'il est différent de celui du modèle (TFilm <> Film). En plus, tu pointes aussi vers le modèle 'function_personnage':
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    has_many :fonction_personnages, :dependent => :destroy
    qui n'est pas présent dans ton post, est-ce qu'il existe ?:
    Citation Envoyé par kinggordo Voir le message

    class fonction < ActiveRecord::Base

    has_many :film_fonctions, :dependent => :destroy
    has_many :films, :through => :film_fonctions

    has_many :fonction_personnages, :dependent => :destroy
    has_many :personnages, :through => :fonction_personnages

    end

    -----

    class personnage < ActiveRecord::Base

    has_many :fonction_personnages, :dependent => :destroy
    has_many :fonctions, :through => :fonction_personnages

    has_many :film_personnages, :dependent => :destroy
    has_many :films, :through => :film_personnages

    end

    ----
    Vérifie d'abord tous tes modèles pour être que les relations entre eux sont correctes et puis continue dans les controlleurs et views.

  3. #3
    Candidat au Club
    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    15
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 15
    Points : 4
    Points
    4
    Par défaut reformulation
    Ok, je reformule:

    3 tables: film | fonction | personnage.

    mes models:

    class film < ActiveRecord::Base

    has_many :film_fonctions, :dependent => :destroy
    has_many :fonctions, :through => :film_fonctions

    has_many :film_personnages, :dependent => :destroy
    has_many :personnages, :through => :film_personnages

    end

    -----

    class fonction < ActiveRecord::Base

    has_many :film_fonctions, :dependent => :destroy
    has_many :films, :through => :film_fonctions

    has_many :fonction_personnages, :dependent => :destroy
    has_many :personnages, :through => :fonction_personnages

    end

    -----

    class personnage < ActiveRecord::Base

    has_many :fonction_personnages, :dependent => :destroy
    has_many :fonctions, :through => :fonction_personnages

    has_many :film_personnages, :dependent => :destroy
    has_many :films, :through => :film_personnages

    end

    ----

    Dans mon formulaire film:

    <% for fonction in Fonction.find(:all, :order =>'titre ASC' ) %>
    <div>
    <%= check_box_tag "film[fonction_ids][]", fonction.id, @film.fonctions.include?(fonction) %>
    <%= link_to_function(fonction.titre) do |page|
    page.visual_effect :toggle_blind, "#{fonction.id}"
    end
    %>

    </div>
    <div id="<%= fonction.id %>" style="display:none;" >
    <div id="perso">
    <% for personnage in Personnage.find(:all, :order =>'titre ASC' ) %>
    <div>
    <%= check_box_tag "film[personnage_ids][]", personnage.id, @film.personnages.include?(personnage) %>
    <%= personnage.titre %>
    <hr size="1" width="100%" align="left" border="dotted"/>
    </div>
    <% end -%>
    </div>
    </div>

    <% end -%>

    le controller film

    def create
    @film = Film.new(params[:film])

    respond_to do |format|
    if @film.save
    flash[:notice] = 'film was successfully created.'
    format.html { redirect_to admin_films_url }
    format.xml { render ml => @film, :status => :created, :location => @film }
    else
    format.html { render :action => "new" }
    format.xml { render ml => @film.errors, :status => :unprocessable_entity }
    end
    end
    end


    def update
    params[:film][:fonction_ids] ||=[]
    params[:film][:personnage_ids] ||=[]
    @film = film.find(params[:id])


    respond_to do |format|
    if @film.update_attributes(params[:film])
    flash[:notice] = 'film was successfully updated.'
    format.html { redirect_to admin_films_url }
    format.xml { head :ok }
    else
    format.html { render :action => "edit" }
    format.xml { render ml => @film.errors, :status => :unprocessable_entity }
    end
    end
    end



    ma problématique est la suivante:

    J' ai créé au préalable des fonctions et des personnages.
    Lorsque que je créé une fiche film, je voudrais pouvoir lui affecter certaines fonctions, puis, à ces fonctions je voudrais affecter plusieurs personnages avec un système de checkbox.

    donc le film 1 et relié aux fonctions 1,2,3
    la fonction 1 est reliée aux personnages 1,3,5
    la fonction 2 est reliée aux personnages 1,4,6
    la fonction 3 est reliée aux personnages 2,7,9


    Comment puis-je tout enregistrer dans le même formulaire ( film ) pour ensuite pouvoir les retrouver lorsque je créer une recherche par film, fonctions ou personnages.


    et là, je n'ai aucune idée…

    Merci Javix !

  4. #4
    Membre averti Avatar de Javix
    Inscrit en
    Juin 2007
    Messages
    531
    Détails du profil
    Informations forums :
    Inscription : Juin 2007
    Messages : 531
    Points : 353
    Points
    353
    Par défaut
    Il n'y a aucune declaration 'belongs_to' dans tes modèles de tables de jonction: ni dans Filmpersonnage ni dans Fillmfonction ni dans Fonction ni dans Personnage ni dans Fonctionpersonnage. Essaye d'abord rajouter cela et puis tester dans la console.

  5. #5
    Candidat au Club
    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    15
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 15
    Points : 4
    Points
    4
    Par défaut belongs_to
    si si, je les ai bien déclarées, j'ai juste oublié de les mettre dans le post.
    Tout mes enregistrement se font correctement dans toutes les tables.

    Je ne sais juste pas comment faire pour ces enregistrements film/fonction/personnage comme expliqué dans le post précédent.

    Y-a-t-il quelque chose à rajouter dans le controller film au niveau de def create ?

    Merci

  6. #6
    Membre averti Avatar de Javix
    Inscrit en
    Juin 2007
    Messages
    531
    Détails du profil
    Informations forums :
    Inscription : Juin 2007
    Messages : 531
    Points : 353
    Points
    353
    Par défaut
    Je ne sais juste pas comment faire pour ces enregistrements film/fonction/personnage comme expliqué dans le post précédent.
    D'après ce que j'ai pu comprendre, chaque Film a plusieurs Fonctions(via FilmFonction) et chaque FilmFonction à son tour a plusieurs Personnages (via FonctionPersonnage).
    Cela veut dire que tu dois définir tes routes en sorte que tu puisse accéder à un Personnage uniquement dans le contexte d'un Film et d'une Fonction:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    films/1/fonctions/1/personnages #tu auras tous les personnages pour une Fonction 1 du Film 1.
    Je pense que dans ce cas il faudra définir nested routes comme ça:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
     
    resources :films do  
      resources :fonctions do  
         resources :personnages
      end 
    end
    Tu peux vérifier tous les routes avec:

  7. #7
    Candidat au Club
    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    15
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 15
    Points : 4
    Points
    4
    Par défaut habtm
    merci Javix.

    je continue de reformuler.

    Actuellement, dans mon formulaire Film, j'arrive à enregistrer plusieurs Fonctions à l'aide de checkbox. Aucun problème.

    Maintenant, et toujours dans le même formulaire, je souhaite pouvoir cliquer sur une des fonctions choisies et qu'apparaissent les personnages ( en checkbox toujours ) et donc affecter plusieurs personnages à cette fonction.

    je tente avec le nested attribute mais n'y voit pas clair.

    Et là je bloque totalement et ne trouve aucune réponse sur le web.

    Any idea?

    Merci

  8. #8
    Membre averti Avatar de Javix
    Inscrit en
    Juin 2007
    Messages
    531
    Détails du profil
    Informations forums :
    Inscription : Juin 2007
    Messages : 531
    Points : 353
    Points
    353
    Par défaut
    Pour les personnages, - fait exactement comme tu l'avais fait pour les fonctions.

    La ligne:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    <%= check_box_tag "film[personnage_ids][]", personnage.id, @film.personnages.include?(personnage) %>
    te permet accéder aux personnages via un film et toi, tu veux pouvoir le faire via une des fonctions:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
    film -> many functions
    function -> many personnages
    mais tu as aussi:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    film -> many personnages (via film personnages)

  9. #9
    Candidat au Club
    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    15
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 15
    Points : 4
    Points
    4
    Par défaut habtm
    ok,

    donc:

    model film:

    has_many :film_fonctions, :dependent => :destroy
    has_many :fonctions, :through => :film_fonctions

    has_many :film_personnages, :dependent => :destroy
    has_many :personnages, :through => :film_personnages

    model fonction:

    has_many :fonction_personnages, :dependent => :destroy
    has_many :personnages, :through => :fonction_personnages


    dans ma vue:

    <% for fonction in fonction.find(:all, :order =>'titre ASC' ) %>
    <div>
    <%= check_box_tag "film[fonction_ids][]", fonction.id, @film.fonctions.include?(fonction) %>
    <%= link_to_function(fonction.titre) do |page|
    page.visual_effect :toggle_blind, "#{fonction.id}"
    end
    %>

    </div>
    <div id="<%= fonction.id %>" style="display:none;" >
    <div id="perso">
    <% for personnage in personnage.find(:all, :order =>'titre ASC' ) %>
    <div>
    <%= check_box_tag "film[personnage_ids][]", personnage.id, @film.personnages.include?(personnage) %>
    <%= personnage.titre %>

    </div>
    <% end -%>
    </div>
    </div>

    <% end -%>



    Avec cette configuration, mon film s'enregistre correctement, la table film_fonctions et film_personnages aussi.
    Par contre, je n'ai toujours aucun enregistrement dans la table fonction_personnages…
    Dois-je ajouter qqchose dans cette ligne: <%= check_box_tag "film[personnage_ids][]", personnage.id, @film.personnages.include?(personnage) %> ?

    Merci

  10. #10
    Membre averti Avatar de Javix
    Inscrit en
    Juin 2007
    Messages
    531
    Détails du profil
    Informations forums :
    Inscription : Juin 2007
    Messages : 531
    Points : 353
    Points
    353
    Par défaut
    Ça dépend dans quelle page tu fais tous ça, - celle de Film? Montre le controller où tu 'create' ton film, fonction et personnages.

  11. #11
    Candidat au Club
    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    15
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 15
    Points : 4
    Points
    4
    Par défaut habtm
    Oui, l'idée est de tout faire dans la page du film:

    Controller film:

    def new

    @film = Film.new

    end

    def edit

    @film = Film.find(params[:id])

    end

    def create

    @film = Film.new(params[:Film])

    respond_to do |format|
    if @film.save
    flash[:notice] = 'film was successfully created.'
    format.html { redirect_to admin_films_url }

    else
    format.html { render :action => "new" }

    end
    end
    end

    def update

    params[:film][:fonction_ids] ||=[]
    params[:film][:personnage_ids] ||=[]
    params[:fonction][:personnage_ids] ||=[]

    @film = Film.find(params[:id])

    respond_to do |format|
    if @film.update_attributes(params[:film])
    flash[:notice] = 'film was successfully updated.'
    format.html { redirect_to admin_films_url }
    for
    else
    format.html { render :action => "edit" }

    end
    end
    end

    Voilà…

  12. #12
    Membre averti Avatar de Javix
    Inscrit en
    Juin 2007
    Messages
    531
    Détails du profil
    Informations forums :
    Inscription : Juin 2007
    Messages : 531
    Points : 353
    Points
    353
    Par défaut
    Poste aussi la page où tu crées ton Film. je ne sais pas comment tu arrives à sauvegarder ton Film avec toutes les Fonctions et C°, - il n'y rien dans le controller

  13. #13
    Candidat au Club
    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    15
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 15
    Points : 4
    Points
    4
    Par défaut
    je créé au préalable toutes mes fonctions et personnages ( avec leur controllers respectifs )

    ensuite, je les appellent dans mon formulaire film.

    Donc, j'ai dans views/films/_form:


    <div id="formulairecinembis">

    <%= error_messages_for :film %>







    <label for="-titre">Titre</label>
    <%= text_field '-film', 'titre' %>
    <br/>





    <h2>fonctions</h2>



    <% for fonction in fonction.find(:all, :order =>'titre ASC' ) %>
    <div>
    <%= check_box_tag "film[fonction_ids][]", fonction.id, @film.fonctions.include?(fonction) %>
    <%= link_to_function(fonction.titre) do |page|
    page.visual_effect :toggle_blind, "#{fonction.id}"
    end
    %>

    </div>
    <div id="<%= fonction.id %>" style="display:none;" >
    <div id="perso">
    <% for personnage in personnage.find(:all, :order =>'titre ASC' ) %>
    <div>
    <%= check_box_tag "film[personnage_ids][]", personnage.id, @film.personnages.include?(personnage) %>
    <%= personnage.titre %>

    </div>
    <% end -%>
    </div>
    </div>

    <% end -%>


    </div>


    Mon partial _form englobe new et edit

  14. #14
    Membre averti Avatar de Javix
    Inscrit en
    Juin 2007
    Messages
    531
    Détails du profil
    Informations forums :
    Inscription : Juin 2007
    Messages : 531
    Points : 353
    Points
    353
    Par défaut
    Dans ton FilmsController essaye de faire qch comme ça dans la méthode 'create':

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
     
    def create
    @film = Film.new(params[:film])
    functions = Function.find(params[:functions_ids] if params[:function_ids]
    personnages = Personnage.find(params[:personnage_ids]) if params [:personage_ids]
    if(@film.personnages << personnages && @film.functions << functions)
      redirect_to film_url(@film)
    else
      render :action => :new
    end
     
    end
    Le but est de récupérer les IDs des fonctions et personnages sélectionnés, puis sauvegarder le film.
    Dans ta page 'views/films/new' tu dois avoir
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
     <% form_for(@film) do |f| %>
    ... le reste de la page + partial

  15. #15
    Candidat au Club
    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    15
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 15
    Points : 4
    Points
    4
    Par défaut
    Pour le moment j'ai une erreur:

    ArgumentError (wrong number of arguments (1 for 0)):
    app/controllers/films_controller.rb:51:in `params'
    app/controllers/films_controller.rb:51:in `create'

    ce qui correspond à:

    personnages = Personnage.find(params[:personnage_ids]) if params [:personnage_ids]


    ???

  16. #16
    Membre averti Avatar de Javix
    Inscrit en
    Juin 2007
    Messages
    531
    Détails du profil
    Informations forums :
    Inscription : Juin 2007
    Messages : 531
    Points : 353
    Points
    353
    Par défaut
    Fait un check de ce que tu as dans ton params hash. C'est peut être params[:film_personnage_ids].

  17. #17
    Candidat au Club
    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    15
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 15
    Points : 4
    Points
    4
    Par défaut
    ok…

  18. #18
    Membre averti Avatar de Javix
    Inscrit en
    Juin 2007
    Messages
    531
    Détails du profil
    Informations forums :
    Inscription : Juin 2007
    Messages : 531
    Points : 353
    Points
    353
    Par défaut
    soit dans ton fichier de log soit ajoute un 'puts' juste avant cet appel.

  19. #19
    Candidat au Club
    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    15
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 15
    Points : 4
    Points
    4
    Par défaut
    pfff…

    Je ne trouve pas…

    dans mon log j'ai:


    Processing filmsController#create (for 127.0.0.1 at 2010-09-30 18:49:20) [POST]
    Parameters: {"x"=>"35", "y"=>"11", "authenticity_token"=>"S6/I0WqcfeSowPOf43pr7uTlTZlqqyBojWtjy87scSk=", "film"=>{"personnage_ids"=>["23", "3"], "fonction_ids"=>["1"]}, "-film"=>{"titre"=>""}}
    Utilisateur Columns (2.3ms) SHOW FIELDS FROM `utilisateurs`
    Utilisateur Load (0.7ms) SELECT * FROM `utilisateurs` WHERE (`utilisateurs`.`id` = 2)
    Role Columns (2.0ms) SHOW FIELDS FROM `roles`
    Role Load (0.4ms) SELECT `roles`.* FROM `roles` INNER JOIN `roles_utilisateurs` ON `roles`.id = `roles_utilisateurs`.role_id WHERE (`roles`.`name` = 'Administrateur') AND (`roles_utilisateurs`.utilisateur_id = 2 ) LIMIT 1
    Film Columns (2.8ms) SHOW FIELDS FROM `films`
    Personnage Columns (2.0ms) SHOW FIELDS FROM `personnages`
    Personnage Load (0.3ms) SELECT * FROM `personnages` WHERE (`personnages`.`id` IN (23,3))
    SQL (0.1ms) BEGIN
    SQL (0.1ms) COMMIT
    Fonction Columns (2.1ms) SHOW FIELDS FROM `fonctions`
    Fonction Load (0.7ms) SELECT * FROM `fonctions` WHERE (`fonctions`.`id` = 1)
    SQL (0.1ms) BEGIN
    SQL (0.1ms) COMMIT

    ArgumentError (wrong number of arguments (1 for 0)):
    app/controllers/films_controller.rb:51:in `params'
    app/controllers/films_controller.rb:51:in `create'


    je sèche…

  20. #20
    Candidat au Club
    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    15
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 15
    Points : 4
    Points
    4
    Par défaut
    bon, j'ai essayé comme ceci:

    def create
    @film = Film.new(params[:film])

    fonctions = Fonction.find(params[:fonction_ids] ||=[])
    personnages = Personnage.find(params[:personnage_ids] ||=[])
    if(@film.personnages << personnages && @film.fonctions << fonctions)
    @film.save
    redirect_to admin_films_url

    else
    format.html { render :action => "new" }

    end

    end


    tout s'enregistre correctement dans la table film_fonctions et film_personnages mais toujours pas dans fonction_personnages

    Donc lorsque j'enregistre les personnages c'est par rapport au film et non aux fonctions.

    Comment puis-je piloter la table fonction_personnages depuis le controller film ?

Discussions similaires

  1. probleme FTP message record have been truncated
    Par plamaison dans le forum AS/400
    Réponses: 5
    Dernier message: 19/08/2010, 14h40
  2. [Tuto] Windows 7 : Problem Steps Recorder
    Par noNak dans le forum Windows 7
    Réponses: 0
    Dernier message: 04/11/2009, 18h05
  3. probleme structure Record
    Par vitch8 dans le forum Langage
    Réponses: 7
    Dernier message: 26/03/2009, 12h06
  4. probleme appel package retourne record
    Par cyberyan dans le forum PL/SQL
    Réponses: 1
    Dernier message: 03/03/2009, 14h01
  5. probleme avec : record "new" is not assigned yet D
    Par chtieu dans le forum PostgreSQL
    Réponses: 2
    Dernier message: 31/03/2005, 20h44

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo