Skip to content

Instantly share code, notes, and snippets.

View ziplizard's full-sized avatar

Matt Myers ziplizard

View GitHub Profile
module.exports = [
{
name: 'Campaign',
primaryKey: '_id',
properties: {
_id: 'objectId',
_externalId: 'string',
alternateTrackingId: 'string?',
createdDate: 'date?',
name: 'string?',
// Service A
const resolvers = {
User: {
id(parent) {
return parent.Id;
},
},
};
exclude = set(['Plugin/DebugKit','Vendor','webroot/min'])
for root, dirs, files in os.walk('/var/www/html/myproject/app', topdown=True):
dirs[:] = [d for d in dirs if d not in exclude]
for file in files:
if file.endswith(('.php','.ctp')):
print root, '/', file
@ziplizard
ziplizard / gist:0e22eb0202e81cded8aa
Last active August 29, 2015 14:07
belongsTo custom condition does not work
<?php
// in LinkedinPerson
public $hasMany = array(
'LinkedinRecommendation' => array(
'className' => 'LinkedinRecommendation',
'foreignKey' => false,
'dependent' => true,
),
)