Hi!
I have this assoc:
Group belongsTo Country
Im trying to get this array(to generate a select with form helper):
Array(
[Country.name] => Array
(
[Group.id] => [Group.name]
...
)
...
)
Example:
Array (
[Spain] => Array
(
[1] =
r::$error = false
> SessionHelper::$_userAgent = "c82e7b6a933757f629da37bc1114e73f"
> SessionHelper::$path = "/"
> SessionHelper::$lastError = NULL
> SessionHelper::$security = NULL
> SessionHelper::$time = 1256747395
> SessionHelper::$sessionTime = false
> Se
> extract() [function.extract]: First argument should be an array
>
>
> On Oct 28, 8:56 am, Sergio Silva wrote:
>> debug($data['User']) ?
>>
>> 2009/10/28 Simon :
>>
>>
>>
>>
>>
>> > extract() [function.extract]: Firs
debug($data['User']) ?
2009/10/28 Simon :
>
> extract() [function.extract]: First argument should be an array
>
> it used to work with cakephp 1.2.0.7962 Final any idea
> >
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
cool ; )
2009/10/28 Aurimas :
>
> oh sorry, fixed
>
> On Oct 28, 1:50 pm, Sergio Silva wrote:
>> @Aurimas: 403 Forbidden
>>
>> 2009/10/28 Aurimas :
>>
>>
>>
>> > here is zombie language translator used by cakephp ;)
>> >http:/
@Aurimas: 403 Forbidden
2009/10/28 Aurimas :
>
> here is zombie language translator used by cakephp ;)
> http://lickus.lt/zomb.php
>
> On Oct 28, 12:27 pm, "euromark (munich)"
> wrote:
>> yeah :)
>> i like the "BRAAIIINS" stuff^^
>>
>> On 28 Okt., 10:59, Eugene Golovan wrote:
>>
>> > Helloween?
> I have many Package
> And I have many cost for each Package of Product
>
> I can't write like this:
> Product HABTM Package
> Package hasOne Price (with 'cost' field)
> because different Package have different Price.cost
>
> On Oct 28, 12:55 am, Sergio Silva
I recommend you this reading:
http://book.cakephp.org/view/85/Saving-Related-Model-Data-HABTM
When it says "What to do when HABTM becomes complicated?"
Good luck
2009/10/27 kicaj :
>
> I have relations:
>
> Products HABTM Package
>
> Table 'packages_products' has fields: id, package_id, product
Are you reciving my mails?
sersilva said:
You can try changing the alias name of the relationship.
For example:
==
//In DisplayArea Model
var $belongsTo = array(
'PageRelationship' => array( //Instead of just 'Page'
You can try changing the alias name of the relationship.
For example:
==
//In DisplayArea Model
var $belongsTo = array(
'PageRelationship' => array( //Instead of just 'Page'
'className' => 'Page,
10 matches
Mail list logo