Questions tagged as "relations"
Relations with another table using Array
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
multiple relations and multiple conditions in a named scope
I am trying to apply 2 conditions based on data from different tables inside a named scope. I know my relations are right because if i remove the second conditionREAD MORE
By deez in Active Record · Asked 434 days 3 hours 14 mins ago
Questions: 2 Accepted: 0 ( 0% ) | Reputation: 0
CActiveRecord relations with key name
ACTIVERECORDforeign keyrelations
Hello YiiAnswers! i have an CActiveRecord that i want to make it relation to another model, i build my relations method like this:
- public function relations()
- {
- // NOTE:READ MORE
By haimWD in Active Record · Asked 493 days 22 hours 2 mins ago
Questions: 1 Accepted: 0 ( 0% ) | Reputation: 0
What is the proper procedure for passing a varible to a create/update form?
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 in Relations · Asked 511 days 23 hours 44 mins ago
Questions: 1 Accepted: 0 ( 0% ) | Reputation: 0
How do I properly MANY_MANY relationship?
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
