public function __call($name, $args)
{
$name = (string) $name;
// select > find alias
if ('select' == $name) {
return call_user_func_array(array($this, 'find'), $args);
}
if (!isset($this->deprecated)) {
require_once PODS_DIR . 'deprecated/classes/Pods.php';
$this->deprecated = new Pods_Deprecated($this);
}
if (method_exists($this->deprecated, $name)) {
return call_user_func_array(array($this->deprecated, $name), $args);
} elseif (!class_exists('Pod') || Pod::$deprecated_notice) {
pods_deprecated("Pods::{$name}", '2.0');
}
}