not able to find class in oneToMany relationship (laravel4)

My first problem at work today was related to name spaces. Something that worked yesterday before I ran automated API tests wasn’t working: I have a Candidate/CandidateAddress relationship where one Candidate may have multiple addresses. For some reason, even though everything is namespaced, I was getting “Class CandidateAddress not found”.

This is a really helpful tip, but a misleadingly expansive title:
…and didn’t do the magic

Whereas the answer to this:

…actually solved my problem.

It’s not as neat as I’d like, but it works.
(apologies tot he non-techies who will see this through FB – when I”m not at work I will fix IFTTT to not post notes-to-self)

non-linky link (and no conclusions!)

I wrote this last November, and I don’t know why I didn’t publish it. So I’m publishing it now…

Yesterday at work I went to a seminar about the relevance, joy and current developments in research administration. Clearly, as my job is now fully about supporting the research, I was very interested, hence the being there.

In the main it was a good and interesting seminar. A little bit preaching to the converted, given that the audience were Faculty staff (Medical & Human Sciences in a university which has as one of its key aims “doing more & better research”), but humour & self-deprecation included in an engaging and in no way too much personality way.

There was just one thing which made me go “But-”

At one point, the presenter said (and I paraphrase) “We do really loads of excellent research in the Manchester research cluster AND YET in the greater Manchester area we have some of the lowest health indicators in the country” (low life expectancy, early coronary deaths, many deaths from smoking and so on).

I was distracted for a while trying to draw a link between research into genetically inherited enzyme-processing problems and high incidence of lung disease and macDonalds-related heart attacks.

I can see how not having a healthy participant base to draw on could be problematic for research (thank you Ian for pointing that out).

Unless you’re specifically targeting research which is intended to address the health issues which are known to be a problem in Greater Manchester and making sure that any practices which are shown to be effective are disseminated into the practising health community, you can’t really draw that correlation. According to the presentation (again, very good – worth every penny) structures and organisation are being geared towards encouraging exactly that in Manchester, which is good.

As someone who is a northerner by inheritance & adoption, the large band of low health indicators which stretched across the Pennines from (apparently, roughly) Skem & St Helens to Chesterfield & Doncaster was troubling, plus the large Birmingham-shaped blob on the lady’s map were quite telling. It’s a map which I could stare at for hours, quite frankly. And more alarmingly, we’re just launching into a ConDem Coalition who are slashing budgets and allegedly have no concept of what it’s like to live in a deep red area.

The other interesting discussion which followed on from the seminar was what happens *after* the study. If it’s a commercially sponsored clinical drug trial, it’s not rocket science – the pharmaceutical company promotes it. But if it’s a change to current practices it’s essentially up to the investigator to disseminate that wisdom. I’d be interested to know, in general, how that goes. Watch this space!

my husband’s a genius!

We had an x-box brought into work end of last week which had been kicked over, and condemned by another IT professional (or it could be a friend-of-a-friend who allegedly works in the general area of IT) as “it’s the motherboard” and it can’t be fixed. The x-box owner was upset by this because:

  1. it wasn’t like it was dropped from a great height, it was kicked over onto a carpet – they should be more robust than that, you’d think.
  2. you-know-what is coming and Santa may or may not have assumed that the family had a working x-box, and might not have had the resources to develop a plan B based on that not being the case.

Steve just brought it home to test on the TV after working on it today, and it appears to be fixed.

Turns out, he’s a genius (possibly. If it’s still working in the morning. keep your fingers crossed, please, everybody!)

net out there

I went to my first Northern networking event this evening – I’ve been to ones in the South but not yet up here. The West Lancs ICT cluster was the chosen starting point. I was *asked* for my card a couple of times, met a potential new customer (who knows if it’ll come to anything, possibly, possibly not) and would generally consider the evening a success. Someone reacted to me saying what I did in a way that I might have done a few years ago. I wouldn’t now. I didn’t hare out of there at the first opportunity. I initiated conversations. Roll on the next one!!

check this out

I know I have a readership of 5 on a good day, but mentioning this here is better than not mentioning it anywhere. I’m currently working on a new site for one of my clients (and friends) Karen Parker. She has some STUNNING canine & equine photography (as the name suggests). Under canine/Fine Art my particular faves are the Weimaraner (no big surprise there), the husky on black and the red setter on green.

Check ’em out. She deserves more success than she currently has, given the quality of her pics.

Word association – becomes image association

I found an image this afternoon while browsing iStock which spoke to me and (effectively) said “I’m your new website background”. It feels lovely and calm, although the colours were fairly vibrant, and a version of teal which I’m pretty into at the moment. It’s light and airy, and although not a work of art, makes for a better site than the orgy of dark colours I was using before. So I re-worked the site (the wonders of css, by the time I’d re-sized the image, it took about 5 minutes. That, and my site has pretty much no content. Check it out. Honestly.) and showed it to Steve.

Go and look at what he saw here. Don’t read any more until you’ve looked.

Steve’s first comment was “what that needs is blood spattered on the walls”.

See how this immediately changes it from a relaxing, uplifting image (although, on reflection, maybe an image that evokes the thought “go up into the light” might not be as positive as I first thought) to a vaguely sinister one.

So – what does it say to you?

World’s Smallest Fridge

Our days of potentially cheesy milk are over (probably, largely). Chris found a fridge in a box at the office. This isn’t as crazy as it sounds – here’s how big it is:


We think it may be possible to fit a whole litre carton in, and possibly 2 of them. Only time will tell…