Register here!

Forgot password?

ASK NEW QUESTION

Home Page » Models » Relations
0 Votes

Relations with another table using Array

databaseMysqlphprelationsyii

how I can use array in cell related with another table in database like

Users table:

Name | languages_id Anas | 1,2,3

Languages table:

id | language 1 | English 2 | Arabic

it’sREAD MORE

By abudayah · Asked 190 days 16 hours 3 mins ago

Questions: 1 Accepted: 0 ( 0% ) | Reputation: 0

0 Votes

relation trough

relation trough

Hola,

Según el manual se puede hacer la siguiente relación con las siguientes tablas:

tabla user (id, username, password, email) -> id es la primary key tabla profile (user_id, birthday, website) ->READ MORE

By safitanet · Asked 433 days 12 hours 57 mins ago

Questions: 2 Accepted: 0 ( 0% ) | Reputation: 0

0 Votes

What is the proper procedure for passing a varible to a create/update form?

CreateformrelationsUpdate

I’m not sure I’m phrasing this correctly, so please bare with me. Hopefully this all makes sense.

Let’s say I’m doing a job management system. I have a table of ‘Jobs’READ MORE

By dcreeves88 · Asked 512 days 9 hours 5 mins ago

Questions: 1 Accepted: 0 ( 0% ) | Reputation: 0

1 Vote
Solved!

many_many relation using Giix extension

CGridViewGiixmany_many

Does anybody have a working example of a many_many relation inside of a CGridView using the extension Giix? Thanks, Pablo.

By Puigcerber · Asked 609 days 14 hours 13 mins ago

Questions: 1 Accepted: 0 ( 0% ) | Reputation: 0

0 Votes
Solved!

How to display 2 related models as one in ex. CGridView?

CGridViewmergemultiple models as one

Hi

I have 2 models (tables) which are to be related.

  1. actionPlan(id, hp_id, up_id, text)
  2.  
  3. yearRapport(id, hp_id, up_id, comment)
actionPlan(id, hp_id, up_id, text)

yearRapport(id, hp_id, up_id, comment)

As you can see they are related by keys (id, hp_id, up_id).

Now the questionREAD MORE

By xatep · Asked 629 days 9 hours 34 mins ago

Questions: 2 Accepted: 0 ( 0% ) | Reputation: 0

0 Votes
Solved!

How do I properly MANY_MANY relationship?

many_manyrelations

Hi people!

I’m trying to make a relationship between tables, but I can not hit.

I have read and reread several times to the documentation page (http://www.yiiframew…br/database.arr), but I can not understandREAD MORE

By msribeir · Asked 629 days 9 hours 54 mins ago

Questions: 1 Accepted: 0 ( 0% ) | Reputation: 0

© YiiAnswers.com 2011. All rights reserved.

Switch to our mobile site